diff options
author | 2015-05-25 14:13:18 +0200 | |
---|---|---|
committer | 2015-05-25 14:13:18 +0200 | |
commit | 3be549693a8aaac758f0f1690eefe409e45c003f (patch) | |
tree | 26d733972cf89fd87e69dd97741b0276a31b8499 /module/plugins/crypter/FourChanOrg.py | |
parent | [UserAgentSwitcher] Fixup (2) (diff) | |
download | pyload-3be549693a8aaac758f0f1690eefe409e45c003f.tar.xz |
Some urljoin fixes
Diffstat (limited to 'module/plugins/crypter/FourChanOrg.py')
-rw-r--r-- | module/plugins/crypter/FourChanOrg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/crypter/FourChanOrg.py b/module/plugins/crypter/FourChanOrg.py index c90c84b6f..366adef14 100644 --- a/module/plugins/crypter/FourChanOrg.py +++ b/module/plugins/crypter/FourChanOrg.py @@ -3,6 +3,7 @@ # Based on 4chandl by Roland Beermann (https://gist.github.com/enkore/3492599) import re +import urlparse from module.plugins.Crypter import Crypter @@ -24,4 +25,4 @@ class FourChanOrg(Crypter): def decrypt(self, pyfile): pagehtml = self.load(pyfile.url) images = set(re.findall(r'(images\.4chan\.org/[^/]*/src/[^"<]+)', pagehtml)) - self.urls = ["http://" + image for image in images] + self.urls = [urlparse.urljoin("http://", image) for image in images] |