From 0cb615a34f4d4b4f85d0f3df330bf0fa228ee79e Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 16 Nov 2009 15:14:54 +0100 Subject: fixed rapidshare.com plugin --- module/plugins/RapidshareCom.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py index 476348cca..c6e538ee0 100644 --- a/module/plugins/RapidshareCom.py +++ b/module/plugins/RapidshareCom.py @@ -25,7 +25,7 @@ class RapidshareCom(Plugin): self.html_old = None #time() where loaded the HTML self.time_plus_wait = None #time() + wait in seconds self.want_reconnect = False - self.no_slots = False + self.no_slots = True self.read_config() if self.config['premium']: self.multi_dl = True @@ -60,13 +60,12 @@ class RapidshareCom(Plugin): pyfile.status.url = self.parent.url return True - self.download_serverhtml() - pyfile.status.waituntil = self.time_plus_wait - pyfile.status.want_reconnect = self.want_reconnect - - thread.wait(self.parent) while self.no_slots: - self.download_serverhtml() + self.download_serverhtml() + pyfile.status.waituntil = self.time_plus_wait + pyfile.status.want_reconnect = self.want_reconnect + + thread.wait(pyfile) pyfile.status.url = self.get_file_url() @@ -121,12 +120,17 @@ class RapidshareCom(Plugin): url = self.parent.url self.html[0] = self.req.load(url, cookies=True) self.html_old = time() + with open("rs_dump1.html", "w") as f: + f.write(self.html[0]) def download_serverhtml(self): """downloads html with the important informations """ file_server_url = re.search(r"