summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-10-29 12:27:03 +0100
committerGravatar spoob <spoob@gmx.de> 2009-10-29 12:27:03 +0100
commit051d12f49389a2126bbcf86d5bde384c47a0814d (patch)
tree638bf2c89256102fc81d4ecfb57f6da0df714522
parenthopefully fixed #29 (diff)
downloadpyload-051d12f49389a2126bbcf86d5bde384c47a0814d.tar.xz
tried fix #36 - please test
-rw-r--r--config2
-rw-r--r--module/plugins/RapidshareCom.py14
2 files changed, 6 insertions, 10 deletions
diff --git a/config b/config
index 239eb0d0c..43579fe8e 100644
--- a/config
+++ b/config
@@ -21,7 +21,7 @@ use_reconnect = False
link_file = links.txt
failed_file = failed_links.txt
reconnect_method = reconnect_method
-debug_mode = True
+debug_mode = False
[updates]
search_updates = True
diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py
index 7409f33d9..9270102df 100644
--- a/module/plugins/RapidshareCom.py
+++ b/module/plugins/RapidshareCom.py
@@ -51,8 +51,6 @@ class RapidshareCom(Plugin):
if not pyfile.status.exists:
raise Exception, "The file was not found on the server."
- self.download_serverhtml()
-
pyfile.status.filename = self.get_file_name()
if self.config['premium']:
@@ -90,14 +88,14 @@ class RapidshareCom(Plugin):
def get_wait_time(self):
- if re.search(r".*is already downloading.*", self.html[1]) != None:
+ if re.search(r"is already downloading", self.html[1]) != None:
self.time_plus_wait = time() + 10 * 60
try:
wait_minutes = re.search(r"Or try again in about (\d+) minute", self.html[1]).group(1)
self.time_plus_wait = time() + 60 * int(wait_minutes)
self.want_reconnect = True
except:
- if re.search(r".*Currently a lot of users.*", self.html[1]) != None:
+ if re.search(r"Currently a lot of users", self.html[1], re.I) != None:
self.time_plus_wait = time() + 130
return True
wait_seconds = re.search(r"var c=(.*);.*", self.html[1]).group(1)
@@ -106,11 +104,9 @@ class RapidshareCom(Plugin):
def file_exists(self):
""" returns True or False
"""
- if re.search(r"The file could not be found.", self.html[0]) != None or \
- re.search(r"This limit is reached", self.html[0]) or \
- re.search(r"is momentarily not available", self.html[0]) or \
- re.search(r"The uploader has removed this file from the server", self.html[0]) or \
- re.search(r"This file is suspected to contain illegal content", self.html[0]):
+ if re.search("The file could not be found|This limit is reached| \
+ is momentarily not available|removed this file| \
+ contain illegal content", self.html[0], re.I) != None:
return False
else:
return True