summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/DuckCryptInfo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-10 19:07:53 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-10 19:07:53 +0100
commit2439bc22671dde697817291b721bfddb792a93b4 (patch)
treedad4615b7f1d664263af6a85392282329aa0b8e0 /pyload/plugins/crypter/DuckCryptInfo.py
parentRevert plugin directory structure (diff)
downloadpyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/crypter/DuckCryptInfo.py')
-rw-r--r--pyload/plugins/crypter/DuckCryptInfo.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugins/crypter/DuckCryptInfo.py b/pyload/plugins/crypter/DuckCryptInfo.py
index fc6f95589..2188949bb 100644
--- a/pyload/plugins/crypter/DuckCryptInfo.py
+++ b/pyload/plugins/crypter/DuckCryptInfo.py
@@ -8,17 +8,17 @@ from pyload.plugins.Crypter import Crypter
class DuckCryptInfo(Crypter):
- __name__ = "DuckCryptInfo"
- __type__ = "crypter"
- __version__ = "0.02"
+ __name = "DuckCryptInfo"
+ __type = "crypter"
+ __version = "0.02"
- __pattern__ = r'http://(?:www\.)?duckcrypt\.info/(folder|wait|link)/(\w+)/?(\w*)'
- __config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
+ __pattern = r'http://(?:www\.)?duckcrypt\.info/(folder|wait|link)/(\w+)/?(\w*)'
+ __config = [("use_subfolder", "bool", "Save package to subfolder", True),
("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
- __description__ = """DuckCrypt.info decrypter plugin"""
- __license__ = "GPLv3"
- __authors__ = [("godofdream", "soilfiction@gmail.com")]
+ __description = """DuckCrypt.info decrypter plugin"""
+ __license = "GPLv3"
+ __authors = [("godofdream", "soilfiction@gmail.com")]
TIMER_PATTERN = r'<span id="timer">(.*)</span>'
@@ -27,7 +27,7 @@ class DuckCryptInfo(Crypter):
def decrypt(self, pyfile):
url = pyfile.url
- m = re.match(self.__pattern__, url)
+ m = re.match(self.__pattern, url)
if m is None:
self.fail(_("Weird error in link"))
if str(m.group(1)) == "link":
@@ -38,7 +38,7 @@ class DuckCryptInfo(Crypter):
def handleFolder(self, m):
html = self.load("http://duckcrypt.info/ajax/auth.php?hash=" + str(m.group(2)))
- m = re.match(self.__pattern__, html)
+ m = re.match(self.__pattern, html)
self.logDebug("Redirectet to " + str(m.group(0)))
html = self.load(str(m.group(0)))
soup = BeautifulSoup(html)