summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/RapidshareCom.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py
index 275fa761c..29e9a7c1f 100644
--- a/module/plugins/RapidshareCom.py
+++ b/module/plugins/RapidshareCom.py
@@ -6,6 +6,7 @@ from time import time
from module.Plugin import Plugin
import hashlib
+import logging
class RapidshareCom(Plugin):
@@ -26,6 +27,7 @@ class RapidshareCom(Plugin):
self.time_plus_wait = None #time() + wait in seconds
self.want_reconnect = False
self.no_slots = True
+ self.logger = logging.getLogger("log")
self.read_config()
if self.config['premium']:
self.multi_dl = True
@@ -141,7 +143,7 @@ class RapidshareCom(Plugin):
except:
if re.search(r"(Currently a lot of users|There are no more download slots)", self.html[1], re.I) != None:
self.time_plus_wait = time() + 130
- self.parent.parent.logger.info("Rapidshare: No free slots!")
+ self.logger.info("Rapidshare: No free slots!")
self.no_slots = True
return True
self.no_slots = False