summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/FourChanOrg.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-28 00:58:56 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-28 00:58:56 +0100
commit712ec761237eb989484b8c8f84fdf2d566500482 (patch)
tree9054ca99b3bf0c0938f6bec17c129e7ccfa43c96 /module/plugins/crypter/FourChanOrg.py
parentMerge pull request #2125 from GammaC0de/patch-6 (diff)
downloadpyload-712ec761237eb989484b8c8f84fdf2d566500482.tar.xz
Fix https://github.com/pyload/pyload/issues/2112
Diffstat (limited to 'module/plugins/crypter/FourChanOrg.py')
-rw-r--r--module/plugins/crypter/FourChanOrg.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/crypter/FourChanOrg.py b/module/plugins/crypter/FourChanOrg.py
index aacf62c20..7fa38a736 100644
--- a/module/plugins/crypter/FourChanOrg.py
+++ b/module/plugins/crypter/FourChanOrg.py
@@ -15,9 +15,10 @@ class FourChanOrg(Crypter):
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?boards\.4chan\.org/\w+/res/(\d+)'
- __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__ = """4chan.org folder decrypter plugin"""
__license__ = "GPLv3"
@@ -27,7 +28,7 @@ class FourChanOrg(Crypter):
def decrypt(self, pyfile):
pagehtml = self.load(pyfile.url)
images = set(re.findall(r'(images\.4chan\.org/[^/]*/src/[^"<]+)', pagehtml))
- self.urls = [urlparse.urljoin("http://", image) for image in images]
+ self.links = [urlparse.urljoin("http://", image) for image in images]
getInfo = create_getInfo(FourChanOrg)