From 40add66d77e0eeb1f0f709ad07ecba553123bba1 Mon Sep 17 00:00:00 2001 From: sebdelsol Date: Sat, 4 Apr 2015 21:15:35 +0200 Subject: [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). --- module/plugins/hoster/ZippyshareCom.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module/plugins/hoster/ZippyshareCom.py') 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 -- cgit v1.2.3