diff options
author | spoob <spoob@gmx.de> | 2009-06-16 16:50:59 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-06-16 16:50:59 +0200 |
commit | c0da328490dcae4ceab6416ef8d48d9262c1aad3 (patch) | |
tree | 54ef14373d85855a122857e85d5e8f4db3414b76 /Plugins/ZippyshareCom.py | |
parent | fixed file_list bug (diff) | |
download | pyload-c0da328490dcae4ceab6416ef8d48d9262c1aad3.tar.xz |
Added Zippyshare.com Download Plugin
Diffstat (limited to 'Plugins/ZippyshareCom.py')
-rw-r--r-- | Plugins/ZippyshareCom.py | 9 |
1 files changed, 6 insertions, 3 deletions
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("<strong>Name: </strong>(.*)</font><br />", 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) |