diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-01 00:08:24 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-01 00:08:24 +0200 |
commit | 8e498789b5015896fe8d8e7a8379ce6be139bf92 (patch) | |
tree | e53073520e01602fd31ac6631b6c27878fdc72b1 | |
parent | Temp fixup to `filename*=UTF-8` bug (diff) | |
download | pyload-8e498789b5015896fe8d8e7a8379ce6be139bf92.tar.xz |
Temp fixup to `filename*=UTF-8` bug (2)
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 9f3e56eb8..6f1c7409d 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -247,7 +247,7 @@ def secondsToMidnight(gmt=0): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "1.32" + __version__ = "1.33" __pattern__ = r'^unmatchable$' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -502,8 +502,8 @@ class SimpleHoster(Hoster): def download(self, url, get={}, post={}, ref=True, cookies=True, disposition=False): try: if disposition: - content = urllib2.urlopen(self.link).info()['Content-Disposition'].split(';') - self.pyfile.name = content[1].split('filename=')[1][1:-1] + content = urllib2.urlopen(url).info()['Content-Disposition'].split(';') + self.pyfile.name = content[1].split('filename=')[1][1:-1] or self.pyfile.name finally: return super(SimpleHoster, self).download(url, get, post, ref, cookies, False) |