diff options
Diffstat (limited to 'pyload/plugins/crypter/XupPl.py')
| -rw-r--r-- | pyload/plugins/crypter/XupPl.py | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/pyload/plugins/crypter/XupPl.py b/pyload/plugins/crypter/XupPl.py new file mode 100644 index 000000000..8d09e28a3 --- /dev/null +++ b/pyload/plugins/crypter/XupPl.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +from pyload.plugins.Crypter import Crypter + + +class XupPl(Crypter): +    __name__ = "XupPl" +    __type__ = "crypter" +    __version__ = "0.1" + +    __pattern__ = r'https?://(?:[^/]*\.)?xup\.pl/.*' + +    __description__ = """Xup.pl decrypter plugin""" +    __author_name__ = "z00nx" +    __author_mail__ = "z00nx0@gmail.com" + + +    def decrypt(self, pyfile): +        header = self.load(pyfile.url, just_header=True) +        if 'location' in header: +            self.urls = [header['location']] +        else: +            self.fail('Unable to find link') | 
