diff options
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)] | 
