summaryrefslogtreecommitdiffstats
path: root/Plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-19 00:07:08 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-19 00:07:08 +0200
commit45186b775ba6cac2d659d14210f7d1c9bbcc2a89 (patch)
tree50dc8f061808af48731e902a835f3ae3c486eed6 /Plugins
parentEr downloaded jetzt eine Rapidshare Datei, wait muss aber noch implementiert ... (diff)
downloadpyload-45186b775ba6cac2d659d14210f7d1c9bbcc2a89.tar.xz
funzt im moment nicht, aber ich arbeite daran
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/RapidshareCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py
index 427b43518..60095bfd5 100644
--- a/Plugins/RapidshareCom.py
+++ b/Plugins/RapidshareCom.py
@@ -57,8 +57,9 @@ class RapidshareCom(Plugin):
if re.search(r".*Currently a lot of users.*", self.html) != None:
return ('wait', 2*60)
wait_seconds = re.search(r"var c=(.*);.*", self.html).group(1)
- print "wait" ,wait_seconds
self.time_plus_wait = time() + int(wait_seconds)
+
+ print self.time_plus_wait - time()
def file_exists(self):
""" returns True or False
@@ -71,7 +72,8 @@ class RapidshareCom(Plugin):
return False
else:
return True
-
+ #The uploader has removed this file from the server.
+
def get_file_url(self):
""" returns the absolute downloadable filepath
"""
@@ -79,11 +81,9 @@ class RapidshareCom(Plugin):
self.download_html()
if (self.html_old + 5*60) > time(): # nach einiger zeit ist die file_url nicht mehr aktuell
self.download_html()
- if(time() < self.time_plus_wait):
- return ('wait', self.time_plus_wait - time())
file_url_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*"
- return ('download', (re.search(file_url_pattern, self.html).group(1), self.get_file_name()))
+ return re.search(file_url_pattern, self.html).group(1)
def get_file_name(self):
if self.html == None: