diff options
author | spoob <spoob@gmx.de> | 2009-12-17 15:30:25 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-12-17 15:30:25 +0100 |
commit | 502a9567941d562883a9464555a64a40590d7eed (patch) | |
tree | a84fcaf265ed44e3add7a409ddbb7b1a5edcbfd3 /module/plugins | |
parent | new images, status ajax, add jquery (diff) | |
download | pyload-502a9567941d562883a9464555a64a40590d7eed.tar.xz |
Little Rapidshare Fix
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/LinkList.py | 10 | ||||
-rw-r--r-- | module/plugins/RapidshareCom.py | 8 |
2 files changed, 10 insertions, 8 deletions
diff --git a/module/plugins/LinkList.py b/module/plugins/LinkList.py index 092e3ef10..210451af9 100644 --- a/module/plugins/LinkList.py +++ b/module/plugins/LinkList.py @@ -35,10 +35,10 @@ class LinkList(Plugin): tmpLinks.append(link.replace("\n", "")) txt.close() - if not self.parent.core.config['general']['debug_mode']: - txt = open(linkList, 'w') - txt.write("") - txt.close() - #may delete read txt file? + #~ if not self.parent.core.config['general']['debug_mode']: + #~ txt = open(linkList, 'w') + #~ txt.write("") + #~ txt.close() + #~ #may delete read txt file? self.links = tmpLinks 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) |