diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-25 14:37:37 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-25 14:37:37 +0200 |
commit | b9b3b917d353d0bd7ad62a10ac86332db62ebecf (patch) | |
tree | 7753ff65d649bd11b83015eafac86e2965078d27 | |
parent | Some urljoin fixes (diff) | |
download | pyload-b9b3b917d353d0bd7ad62a10ac86332db62ebecf.tar.xz |
[SimpleCrypter] Fixup
-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 bf024576f..46ccb11b5 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -5,13 +5,13 @@ import urlparse from module.plugins.Crypter import Crypter from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, replace_patterns, set_cookies -from module.utils import fixup, html_unescape +from module.utils import fixup class SimpleCrypter(Crypter, SimpleHoster): __name__ = "SimpleCrypter" __type__ = "crypter" - __version__ = "0.44" + __version__ = "0.45" __pattern__ = r'^unmatchable$' __config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True), #: Overrides core.config['general']['folder_per_package'] @@ -152,7 +152,7 @@ class SimpleCrypter(Crypter, SimpleHoster): url_p = urlparse.urlparse(self.pyfile.url) baseurl = "%s://%s" % (url_p.scheme, url_p.netloc) - return [html_unescape(urlparse.urljoin(baseurl, link) if not urlparse.urlparse(link).scheme else link) \ + return [(urlparse.urljoin(baseurl, link) if not urlparse.urlparse(link).scheme else link).decode('unicode-escape') \ for link in re.findall(self.LINK_PATTERN, self.html)] |