summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/plugins/LinkList.py10
-rw-r--r--module/plugins/RapidshareCom.py8
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)