diff options
author | z00nx 0 <z00nx0@gmail.com> | 2013-09-26 05:36:03 +0200 |
---|---|---|
committer | z00nx 0 <z00nx0@gmail.com> | 2013-09-26 05:36:03 +0200 |
commit | 878c3c93f3b7816ad67008afbe2b9b6367f3980b (patch) | |
tree | 321a34769186dbf78952622290634f93126edae2 | |
parent | XFileSharingPro: reverted cbb3d4c and 07ebba1 (diff) | |
download | pyload-878c3c93f3b7816ad67008afbe2b9b6367f3980b.tar.xz |
Initial XupPl decrypter
-rw-r--r-- | module/plugins/crypter/XupPl.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/module/plugins/crypter/XupPl.py b/module/plugins/crypter/XupPl.py new file mode 100644 index 000000000..dbe38aede --- /dev/null +++ b/module/plugins/crypter/XupPl.py @@ -0,0 +1,18 @@ +from module.plugins.Crypter import Crypter + + +class XupPl(Crypter): + __name__ = "XupPl" + __type__ = "crypter" + __pattern__ = r"http(?:s)?://.*\.xup\.pl/.*" + __version__ = "0.1" + __description__ = """Xup.pl Crypter Plugin""" + __author_name__ = ("z00nx") + __author_mail__ = ("z00nx0@gmail.com") + + def decrypt(self, pyfile): + header = self.load(self.pyfile.url, just_header=True) + if 'location' in header: + self.core.files.addLinks([header['location']], self.pyfile.package().id) + else: + self.fail('Unable to find link') |