diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-09 00:22:51 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-09 00:22:51 +0200 |
commit | 73f99ea811d01a2e113a882fe5ab86b0aa9c4f4c (patch) | |
tree | 88c50e2d5ccf079768111f040c0531f5eee26a97 /module/plugins/hoster/ZippyshareCom.py | |
parent | Merge branch 'pr/n1314_sebdelsol' into stable (diff) | |
download | pyload-73f99ea811d01a2e113a882fe5ab86b0aa9c4f4c.tar.xz |
[SimpleHoster] Improve file name handling
Diffstat (limited to 'module/plugins/hoster/ZippyshareCom.py')
-rw-r--r-- | module/plugins/hoster/ZippyshareCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py index cdb37a18c..fbac432cd 100644 --- a/module/plugins/hoster/ZippyshareCom.py +++ b/module/plugins/hoster/ZippyshareCom.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import re -from urllib import unquote +import urllib from BeautifulSoup import BeautifulSoup @@ -53,8 +53,8 @@ class ZippyshareCom(SimpleHoster): else: self.link = self.get_link() - if pyfile.name == 'file.html' and self.link: - pyfile.name = unquote(self.link.split('/')[-1]) + if self.link and pyfile.name == 'file.html': + pyfile.name = urllib.unquote(self.link.split('/')[-1]) def get_link(self): |