summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-30 22:00:04 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-30 22:00:04 +0100
commitb3c1f830aaba0c22de22693e6b8cd81fe392f21a (patch)
treea48c2e278cb1a0b48182e665a0d5bb5652fb4ff3 /module/plugins
parentWIP: package system second draft - unstable (diff)
downloadpyload-b3c1f830aaba0c22de22693e6b8cd81fe392f21a.tar.xz
fixed file_list
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