From 502a9567941d562883a9464555a64a40590d7eed Mon Sep 17 00:00:00 2001 From: spoob Date: Thu, 17 Dec 2009 15:30:25 +0100 Subject: Little Rapidshare Fix --- module/plugins/RapidshareCom.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'module/plugins/RapidshareCom.py') diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py index ee1d84a75..c4e1f8ef9 100644 --- a/module/plugins/RapidshareCom.py +++ b/module/plugins/RapidshareCom.py @@ -115,8 +115,8 @@ class RapidshareCom(Plugin): if premkbleft < int(self.api_data["size"][0:-3]): self.logger.info("Rapidshare: Not enough traffic left") self.config["premium"] = False - - self.props["premkbleft"] = premkbleft + else: + self.props["premkbleft"] = premkbleft def download_html(self): """ gets the url from self.parent.url saves html in self.html and parses @@ -133,7 +133,9 @@ class RapidshareCom(Plugin): self.html_old = time() if re.search(r"is already downloading", self.html[1]) != None: - self.time_plus_wait = time() + 10 * 60 + self.logger.info("Rapidshare: Already downloading, wait 30 minutes") + self.time_plus_wait = time() + 10 * 30 + return False self.no_slots = False try: wait_minutes = re.search(r"Or try again in about (\d+) minute", self.html[1]).group(1) -- cgit v1.2.3