summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ZippyshareCom.py
diff options
context:
space:
mode:
authorGravatar sebdelsol <seb.morin@gmail.com> 2015-04-04 21:15:35 +0200
committerGravatar sebdelsol <seb.morin@gmail.com> 2015-04-04 21:15:35 +0200
commit40add66d77e0eeb1f0f709ad07ecba553123bba1 (patch)
tree571d8d866e6a1d1fdea85d12f22594c196f98b90 /module/plugins/hoster/ZippyshareCom.py
parentMerge pull request #1301 from saintego/patch-5 (diff)
downloadpyload-40add66d77e0eeb1f0f709ad07ecba553123bba1.tar.xz
[zippyshare] fix bug #1311
Zippyshare sometimes encode file name with an image. In this case, use the file link to get the file name. (it's probably a bad hack. I don't know nothing about pyload Core).
Diffstat (limited to 'module/plugins/hoster/ZippyshareCom.py')
-rw-r--r--module/plugins/hoster/ZippyshareCom.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py
index 3f392133a..27ec598e1 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