summaryrefslogtreecommitdiffstats
path: root/Plugins/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/Plugin.py')
-rw-r--r--Plugins/Plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Plugins/Plugin.py b/Plugins/Plugin.py
index c0724c390..5d7fc8f45 100644
--- a/Plugins/Plugin.py
+++ b/Plugins/Plugin.py
@@ -18,6 +18,7 @@
#
###
import ConfigParser
+import logging
import re
from module.network.Request import Request
@@ -43,6 +44,7 @@ class Plugin():
self.want_reconnect = False
self.multi_dl = True
self.ocr = None #captcha reader instance
+ self.logger = logging.getLogger("log")
def prepare(self, thread):
pyfile = self.parent
@@ -113,7 +115,7 @@ class Plugin():
self.config[option] = False if self.config[option].lower() == 'false' else self.config[option]
def init_ocr(self):
- modul = __import__("captcha."+self.props['name'], fromlist=['captcha'])
+ modul = __import__("captcha." + self.props['name'], fromlist=['captcha'])
captchaClass = getattr(modul, self.props['name'])
self.ocr = captchaClass()