diff options
| author | 2009-08-07 13:23:52 +0200 | |
|---|---|---|
| committer | 2009-08-07 13:23:52 +0200 | |
| commit | d59f4d94c6b627b83269c643703824afb7faab14 (patch) | |
| tree | c3e9756164daf58dfdfff69be8624d18d1d50934 /Plugins/Plugin.py | |
| parent | ... (diff) | |
| download | pyload-d59f4d94c6b627b83269c643703824afb7faab14.tar.xz | |
Rs fix, timed reconnect, Cli local option + displaying size
Diffstat (limited to 'Plugins/Plugin.py')
| -rw-r--r-- | Plugins/Plugin.py | 4 | 
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()  | 
