diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-20 01:23:33 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-20 01:23:33 +0100 |
commit | 8f45ccee3c26f991738288805963a5961cd68267 (patch) | |
tree | 254739596a454861577ae3250a0f2fa87c3a2537 /module/plugins/internal/SimpleCrypter.py | |
parent | Fix plugin filename case (diff) | |
download | pyload-8f45ccee3c26f991738288805963a5961cd68267.tar.xz |
[SimpleHoster] Improve downloadLink routine
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r-- | module/plugins/internal/SimpleCrypter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index 2e2f2ca0d..80504bf67 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -151,10 +151,10 @@ class SimpleCrypter(Crypter, SimpleHoster): Returns the links extracted from self.html You should override this only if it's impossible to extract links using only the LINK_PATTERN. """ - parsed = urlparse(self.pyfile.url) - base = "%s://%s" % (parsed.scheme, parsed.netloc) + url_p = urlparse(self.pyfile.url) + baseurl = "%s://%s" % (url_p.scheme, url_p.netloc) - return [urljoin(base, link) if not urlparse(link).scheme else link \ + return [urljoin(baseurl, link) if not urlparse(link).scheme else link \ for link in re.findall(self.LINK_PATTERN, self.html)] |