From c0da328490dcae4ceab6416ef8d48d9262c1aad3 Mon Sep 17 00:00:00 2001 From: spoob Date: Tue, 16 Jun 2009 16:50:59 +0200 Subject: Added Zippyshare.com Download Plugin --- Plugins/ZippyshareCom.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Plugins/ZippyshareCom.py') diff --git a/Plugins/ZippyshareCom.py b/Plugins/ZippyshareCom.py index 4e69a5155..d61841ab0 100644 --- a/Plugins/ZippyshareCom.py +++ b/Plugins/ZippyshareCom.py @@ -26,7 +26,7 @@ class ZippyshareCom(Plugin): def download_html(self): url = self.parent.url - self.html = self.req.load(url) + self.html = self.req.load(url, cookies=True) self.time_plus_wait = time() + 12 def get_file_url(self): @@ -35,7 +35,7 @@ class ZippyshareCom(Plugin): if self.html == None: self.download_html() if not self.want_reconnect: - file_url = urllib.unquote(re.search("var comeonguys = 'fck(.*)';", self.html).group(1)) + file_url = urllib.unquote(re.search("var \w* = 'fck(.*)';", self.html).group(1)) return file_url else: return False @@ -45,7 +45,6 @@ class ZippyshareCom(Plugin): self.download_html() if not self.want_reconnect: file_name = re.search("Name: (.*)
", self.html).group(1) - print "zippy",file_name return file_name else: return self.parent.url @@ -59,3 +58,7 @@ class ZippyshareCom(Plugin): return False else: return True + + def proceed(self, url, location): + + self.req.download(url, location, cookies=True) -- cgit v1.2.3