From 370596a4805ca6aae6afceacb424090999566762 Mon Sep 17 00:00:00 2001 From: spoob Date: Wed, 10 Mar 2010 17:34:42 +0100 Subject: Fixed RS? --- module/plugins/hoster/RapidshareCom.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index 41640b4e1..840f62268 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -1,3 +1,4 @@ + #!/usr/bin/env python # -*- coding: utf-8 -*- @@ -22,7 +23,6 @@ class RapidshareCom(Plugin): self.props = props self.parent = parent self.html = [None, None] - 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 = True @@ -46,7 +46,7 @@ class RapidshareCom(Plugin): self.download_api_data() if self.api_data["status"] == "1": pyfile.status.filename = self.get_file_name() - + if self.config["premium"]: self.logger.info(_("Rapidshare: Use Premium Account (%sGB left)") % (self.props["premkbleft"]/1000000)) pyfile.status.url = self.parent.url @@ -125,16 +125,13 @@ class RapidshareCom(Plugin): """ gets the url from self.parent.url saves html in self.html and parses """ self.html[0] = self.req.load(self.url, cookies=True) - self.html_old = time() - + def get_wait_time(self): """downloads html with the important informations """ file_server_url = re.search(r"