diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-04-29 22:48:34 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-04-29 22:48:34 +0200 |
commit | 831e1cd10f97b890d980ba0b5708284bb23b0f64 (patch) | |
tree | 833ddc6264a7eb392db21355f3536b3d0cfdfe44 | |
parent | fix 'Content-Disposition' filename cutting first and last chars (diff) | |
download | pyload-831e1cd10f97b890d980ba0b5708284bb23b0f64.tar.xz |
Update SimpleHoster.py
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index f32d7c036..0bc529cbe 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -501,7 +501,7 @@ class SimpleHoster(Hoster): try: if disposition: content = urllib2.urlopen(url).info()['Content-Disposition'].split(';') - self.pyfile.name = (content[1].split('filename=')[1].strip('"') + self.pyfile.name = (content[1].split('filename=')[1].strip('"\'') or urlparse.urlparse(urllib.unquote(url)).path.split('/')[-1] or self.pyfile.name) finally: |