diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-08 23:22:34 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-08 23:22:34 +0200 |
commit | 71b3d5f2e884d5dbd0693e523e5ffac22af7986c (patch) | |
tree | ed035a6e7546d479296f64efd12dee69cb91edbb /module/plugins/hoster | |
parent | [ZippyshareCom] Fix https://github.com/pyload/pyload/issues/1311 (diff) | |
parent | [zippyshare] fix bug #1311 (diff) | |
download | pyload-71b3d5f2e884d5dbd0693e523e5ffac22af7986c.tar.xz |
Merge branch 'pr/n1314_sebdelsol' into stable
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/ZippyshareCom.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py index 7af2c3370..cdb37a18c 100644 --- a/module/plugins/hoster/ZippyshareCom.py +++ b/module/plugins/hoster/ZippyshareCom.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import re +from urllib import unquote from BeautifulSoup import BeautifulSoup @@ -52,6 +53,9 @@ class ZippyshareCom(SimpleHoster): else: self.link = self.get_link() + if pyfile.name == 'file.html' and self.link: + pyfile.name = unquote(self.link.split('/')[-1]) + def get_link(self): # get all the scripts inside the html body |