summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/DlProtectCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/crypter/DlProtectCom.py')
-rw-r--r--pyload/plugins/crypter/DlProtectCom.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/pyload/plugins/crypter/DlProtectCom.py b/pyload/plugins/crypter/DlProtectCom.py
index a53a46992..4f96a1d13 100644
--- a/pyload/plugins/crypter/DlProtectCom.py
+++ b/pyload/plugins/crypter/DlProtectCom.py
@@ -9,14 +9,17 @@ from pyload.plugins.internal.SimpleCrypter import SimpleCrypter
class DlProtectCom(SimpleCrypter):
- __name__ = "DlProtectCom"
- __type__ = "crypter"
+ __name__ = "DlProtectCom"
+ __type__ = "crypter"
__version__ = "0.01"
__pattern__ = r'http://(?:www\.)?dl-protect\.com/((en|fr)/)?(?P<ID>\w+)'
+ __config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
+ ("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
__description__ = """Dl-protect.com decrypter plugin"""
- __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
+ __license__ = "GPLv3"
+ __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
OFFLINE_PATTERN = r'>Unfortunately, the link you are looking for is not found'
@@ -56,7 +59,7 @@ class DlProtectCom(SimpleCrypter):
for errmsg in (">The password is incorrect", ">The security code is incorrect"):
if errmsg in self.html:
- self.fail(errmsg[1:])
+ self.fail(_(errmsg[1:]))
pattern = r'<a href="([^/].+?)" target="_blank">'
return re.findall(pattern, self.html)