diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-07-14 10:44:21 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-07-14 10:44:21 +0200 |
commit | dfb207807392bf30f3a07099fc3fc644553e5453 (patch) | |
tree | 5c27a4b486e0a59d6f48cceb4416821ddbb9ed1d /Plugins | |
parent | may stable (diff) | |
download | pyload-dfb207807392bf30f3a07099fc3fc644553e5453.tar.xz |
little fixes
Diffstat (limited to 'Plugins')
-rw-r--r-- | Plugins/RapidshareCom.py | 9 |
1 files changed, 4 insertions, 5 deletions
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 |