summaryrefslogtreecommitdiffstats
path: root/Plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-04 23:31:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-04 23:31:45 +0200
commita6e9a846137688bd7e5b1dea61e41831324ba3a7 (patch)
treec0942954b31a70edced99a036a09e8f0ec074dd2 /Plugins
parentadded buggy Zippyshare.com Download Plugin, fixed gettext bug (diff)
downloadpyload-a6e9a846137688bd7e5b1dea61e41831324ba3a7.tar.xz
request fix
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/Plugin.py4
-rw-r--r--Plugins/ZippyshareCom.py5
2 files changed, 5 insertions, 4 deletions
diff --git a/Plugins/Plugin.py b/Plugins/Plugin.py
index fdf33d3f8..c58976cd4 100644
--- a/Plugins/Plugin.py
+++ b/Plugins/Plugin.py
@@ -22,8 +22,8 @@ class Plugin():
self.props = props
self.parent = parent
self.req = Request()
- self.html = None
- self.time_plus_wait = None #time() + wait in seconds
+ self.html = 0
+ self.time_plus_wait = 0 #time() + wait in seconds
self.want_reconnect = False
self.multi_dl = True
diff --git a/Plugins/ZippyshareCom.py b/Plugins/ZippyshareCom.py
index b059c836c..17e7288f9 100644
--- a/Plugins/ZippyshareCom.py
+++ b/Plugins/ZippyshareCom.py
@@ -35,7 +35,7 @@ class ZippyshareCom(Plugin):
def download_html(self):
url = self.parent.url
self.html = self.req.load(url)
- self.time_plus_wait = time() + 10
+ self.time_plus_wait = time() + 12
def get_file_url(self):
""" returns the absolute downloadable filepath
@@ -53,7 +53,8 @@ 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 file_name
+ print "zippy",file_name
+ return file_name
else:
return self.parent.url