From dfb207807392bf30f3a07099fc3fc644553e5453 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 14 Jul 2009 10:44:21 +0200 Subject: little fixes --- Plugins/RapidshareCom.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Plugins') diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index bbbcbebd1..ea95e1e8b 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -36,19 +36,17 @@ class RapidshareCom(Plugin): self.want_reconnect = False self.download_html() + pyfile.status.filename = self.get_file_name() pyfile.status.exists = self.file_exists() 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() + self.download_serverhtml() pyfile.status.waituntil = self.time_plus_wait - pyfile.status.want_reconnect = self.want_reconnect thread.wait(self.parent) @@ -101,7 +99,8 @@ class RapidshareCom(Plugin): self.want_reconnect = True except: if re.search(r".*Currently a lot of users.*", self.html[1]) != None: - self.time_plus_wait = time() + 2 * 60 + self.time_plus_wait = time() + 130 + return True wait_seconds = re.search(r"var c=(.*);.*", self.html[1]).group(1) self.time_plus_wait = time() + int(wait_seconds) + 5 -- cgit v1.2.3