summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/crypter/Dereferer.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
commitfcead1870013b6a970eca7878a66dbe783c80ea3 (patch)
tree9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/crypter/Dereferer.py
parentInit cosmetics (diff)
downloadpyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz
Diffstat (limited to 'pyload/plugin/crypter/Dereferer.py')
-rw-r--r--pyload/plugin/crypter/Dereferer.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/crypter/Dereferer.py b/pyload/plugin/crypter/Dereferer.py
index ec7f48a52..598cba8bd 100644
--- a/pyload/plugin/crypter/Dereferer.py
+++ b/pyload/plugin/crypter/Dereferer.py
@@ -8,19 +8,19 @@ from pyload.plugin.Crypter import Crypter
class Dereferer(Crypter):
- __name = "Dereferer"
- __type = "crypter"
- __version = "0.10"
+ __name__ = "Dereferer"
+ __type__ = "crypter"
+ __version__ = "0.10"
- __pattern = r'https?://([^/]+)/.*?(?P<url>(ht|f)tps?(://|%3A%2F%2F).*)'
- __config = [("use_subfolder", "bool", "Save package to subfolder", True),
+ __pattern__ = r'https?://([^/]+)/.*?(?P<url>(ht|f)tps?(://|%3A%2F%2F).*)'
+ __config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
- __description = """Crypter for dereferers"""
- __license = "GPLv3"
- __authors = [("zoidberg", "zoidberg@mujmail.cz")]
+ __description__ = """Crypter for dereferers"""
+ __license__ = "GPLv3"
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
def decrypt(self, pyfile):
- link = re.match(self.__pattern, pyfile.url).group('url')
+ link = re.match(self.__pattern__, pyfile.url).group('url')
self.urls = [unquote(link).rstrip('+')]