diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-06-01 22:57:41 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-06-01 22:57:41 +0200 |
commit | a335131bd0056885a410f29df946e3e4050a7f31 (patch) | |
tree | 97d052958f6222d2f7d535678f200644fb2de553 /module | |
parent | [XFSHoster] Improve OFFLINE_PATTERN (diff) | |
download | pyload-a335131bd0056885a410f29df946e3e4050a7f31.tar.xz |
Update Dereferer.py
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/crypter/Dereferer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/crypter/Dereferer.py b/module/plugins/crypter/Dereferer.py index 985c97f3d..85b84a242 100644 --- a/module/plugins/crypter/Dereferer.py +++ b/module/plugins/crypter/Dereferer.py @@ -1,12 +1,14 @@ # -*- coding: utf-8 -*- +import re + from module.plugins.internal.SimpleCrypter import SimpleCrypter class Dereferer(SimpleCrypter): __name__ = "Dereferer" __type__ = "crypter" - __version__ = "0.13" + __version__ = "0.14" __pattern__ = r'https?://(?:www\.)?(?:\w+\.)*?(?P<DOMAIN>(?:[\d.]+|[\w\-]{3,}(?:\.[a-zA-Z]{2,}){1,2})(?:\:\d+)?)/.*?(?P<LINK>(?:ht|f)tps?://.+)' __config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True), @@ -37,4 +39,4 @@ class Dereferer(SimpleCrypter): def getLinks(self): - return [re.match(self.__pattern__, pyfile.url).group('LINK').strip()] + return [re.match(self.__pattern__, self.pyfile.url).group('LINK').strip()] |