diff options
author | Stefano <l.stickell@yahoo.it> | 2013-09-27 23:06:03 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-10-07 11:23:32 +0200 |
commit | 7497a7d12a018db2b561e6b5012e0dc4307ba497 (patch) | |
tree | 8678c5db8df9fd186d70f35dbfc2d6be58dd5641 | |
parent | Increased version number after 5401e18dfd406c2a8ed35c4b72c9df9f7dc3e436 (diff) | |
download | pyload-7497a7d12a018db2b561e6b5012e0dc4307ba497.tar.xz |
Merge pull request #280 from z00nx/XupPl
New crypter plugin: XupPl
(cherry picked from commit bffffbf03c49a246fe2c5ab272cafa85f8ff5642)
-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..09832f037 --- /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"https?://.*\.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') |