summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/DuckCryptInfo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 18:55:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 18:55:20 +0200
commit54025794ebf707ba0c0f2840d5364b0b380d17a9 (patch)
tree5844b0cb987d4f62b8faf2e8984268793a2ed653 /module/plugins/crypter/DuckCryptInfo.py
parentUpdate containers (diff)
downloadpyload-54025794ebf707ba0c0f2840d5364b0b380d17a9.tar.xz
Update crypters
Diffstat (limited to 'module/plugins/crypter/DuckCryptInfo.py')
-rw-r--r--module/plugins/crypter/DuckCryptInfo.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/module/plugins/crypter/DuckCryptInfo.py b/module/plugins/crypter/DuckCryptInfo.py
index eae58d60c..2548c3fbc 100644
--- a/module/plugins/crypter/DuckCryptInfo.py
+++ b/module/plugins/crypter/DuckCryptInfo.py
@@ -4,7 +4,7 @@ import re
import BeautifulSoup
-from module.plugins.internal.Crypter import Crypter
+from module.plugins.internal.Crypter import Crypter, create_getInfo
class DuckCryptInfo(Crypter):
@@ -14,7 +14,7 @@ class DuckCryptInfo(Crypter):
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?duckcrypt\.info/(folder|wait|link)/(\w+)/?(\w*)'
- __config__ = [("activated", "bool", "Activated", True),
+ __config__ = [("activated" , "bool", "Activated" , True),
("use_subfolder" , "bool", "Save package to subfolder" , True),
("subfolder_per_pack", "bool", "Create a subfolder for each package", True)]
@@ -41,11 +41,11 @@ class DuckCryptInfo(Crypter):
def handle_folder(self, m):
html = self.load("http://duckcrypt.info/ajax/auth.php?hash=" + str(m.group(2)))
m = re.match(self.__pattern__, html)
- self.log_debug("Redirectet to " + str(m.group(0)))
+ self.log_debug("Redirect to " + m.group(0))
html = self.load(str(m.group(0)))
soup = BeautifulSoup.BeautifulSoup(html)
cryptlinks = soup.findAll("div", attrs={'class': "folderbox"})
- self.log_debug("Redirectet to " + str(cryptlinks))
+ self.log_debug("Redirect to " + cryptlinks)
if not cryptlinks:
self.error(_("No link found"))
for clink in cryptlinks:
@@ -59,3 +59,6 @@ class DuckCryptInfo(Crypter):
self.urls = [soup.find("iframe")['src']]
if not self.urls:
self.log_info(_("No link found"))
+
+
+getInfo = create_getInfo(DuckCryptInfo)