diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-11 17:48:35 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-13 13:38:06 +0200 |
commit | c47e27ec99f5d6fd66d6c96340e9654bf916ce96 (patch) | |
tree | 1595ab60b46ff6b8f2f3eeadf4f0df84dd0fddf8 /module/plugins/internal/Base.py | |
parent | [SimpleCrypter] Don't extend SimpleHoster anymore (diff) | |
download | pyload-c47e27ec99f5d6fd66d6c96340e9654bf916ce96.tar.xz |
Fixing fixurl...
Diffstat (limited to 'module/plugins/internal/Base.py')
-rw-r--r-- | module/plugins/internal/Base.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/internal/Base.py b/module/plugins/internal/Base.py index 6f0a902f3..c57b58ef0 100644 --- a/module/plugins/internal/Base.py +++ b/module/plugins/internal/Base.py @@ -47,7 +47,7 @@ def check_abort(fn): class Base(Plugin): __name__ = "Base" __type__ = "base" - __version__ = "0.11" + __version__ = "0.12" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -405,10 +405,8 @@ class Base(Plugin): def fixurl(self, url, baseurl=None, unquote=True): - #url = fixurl(url, unquote=False) - - if not baseurl: - baseurl = fixurl(self.pyfile.url) + url = fixurl(url, unquote=True) + baseurl = fixurl(baseurl or self.pyfile.url, unquote=True) if not urlparse.urlparse(url).scheme: url_p = urlparse.urlparse(baseurl) |