summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleCrypter.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-26 01:25:05 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-26 01:27:31 +0200
commit7e65484b60890bbfa39aa7631343dcfb5c379cf9 (patch)
treedc7ca5a9edc93fb4b47738c7da6b070c4c5297ef /module/plugins/internal/SimpleCrypter.py
parentMerge pull request #1426 from immenz/dev_nitro (diff)
downloadpyload-7e65484b60890bbfa39aa7631343dcfb5c379cf9.tar.xz
[GoogledriveCom] Fixup
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r--module/plugins/internal/SimpleCrypter.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 46ccb11b5..48e1e0fab 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
+from module.utils import fixup, html_unescape
class SimpleCrypter(Crypter, SimpleHoster):
__name__ = "SimpleCrypter"
__type__ = "crypter"
- __version__ = "0.45"
+ __version__ = "0.46"
__pattern__ = r'^unmatchable$'
__config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True), #: Overrides core.config['general']['folder_per_package']
@@ -152,8 +152,10 @@ class SimpleCrypter(Crypter, SimpleHoster):
url_p = urlparse.urlparse(self.pyfile.url)
baseurl = "%s://%s" % (url_p.scheme, url_p.netloc)
- 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)]
+ links = [urlparse.urljoin(baseurl, link) if not urlparse.urlparse(link).scheme else link \
+ for link in re.findall(self.LINK_PATTERN, self.html)]
+
+ return [html_unescape(l.decode('unicode-escape')) for l in links]
def handlePages(self, pyfile):