diff options
author | 2015-10-28 00:58:56 +0100 | |
---|---|---|
committer | 2015-10-28 00:58:56 +0100 | |
commit | 712ec761237eb989484b8c8f84fdf2d566500482 (patch) | |
tree | 9054ca99b3bf0c0938f6bec17c129e7ccfa43c96 /module/plugins/crypter/DuckCryptInfo.py | |
parent | Merge pull request #2125 from GammaC0de/patch-6 (diff) | |
download | pyload-712ec761237eb989484b8c8f84fdf2d566500482.tar.xz |
Fix https://github.com/pyload/pyload/issues/2112
Diffstat (limited to 'module/plugins/crypter/DuckCryptInfo.py')
-rw-r--r-- | module/plugins/crypter/DuckCryptInfo.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/crypter/DuckCryptInfo.py b/module/plugins/crypter/DuckCryptInfo.py index 713dbe059..c12ffc977 100644 --- a/module/plugins/crypter/DuckCryptInfo.py +++ b/module/plugins/crypter/DuckCryptInfo.py @@ -14,9 +14,10 @@ class DuckCryptInfo(Crypter): __status__ = "testing" __pattern__ = r'http://(?:www\.)?duckcrypt\.info/(folder|wait|link)/(\w+)/?(\w*)' - __config__ = [("activated" , "bool", "Activated" , True), - ("use_subfolder" , "bool", "Save package to subfolder" , True), - ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)] + __config__ = [("activated" , "bool", "Activated" , True), + ("use_premium" , "bool", "Use premium account if available" , True), + ("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" @@ -56,8 +57,8 @@ class DuckCryptInfo(Crypter): def handle_link(self, url): html = self.load(url) soup = BeautifulSoup(html) - self.urls = [soup.find("iframe")['src']] - if not self.urls: + self.links = [soup.find("iframe")['src']] + if not self.links: self.log_info(_("No link found")) |