diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-05 21:49:35 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-05 21:49:35 +0200 |
commit | 00b4a7e6b57f12eb5086e244948a0cd8ad0c2188 (patch) | |
tree | 28c9a2c9202dc062f95118669f5698c8b5976e32 /module/plugins/Plugin.py | |
parent | italian setup file (diff) | |
download | pyload-00b4a7e6b57f12eb5086e244948a0cd8ad0c2188.tar.xz |
MU fix + others
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 9995da59a..449a032a7 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -206,9 +206,12 @@ class Plugin(object): temp.write(content) temp.close() - - Ocr = self.core.pluginManager.getCaptchaPlugin(self.__name__) - if Ocr and not forceUser and self.core.captcha: + if self.core.captcha: + Ocr = self.core.pluginManager.getCaptchaPlugin(self.__name__) + else: + Ocr = None + + if Ocr and not forceUser: sleep(randint(3000, 5000) / 1000.0) if self.pyfile.abort: raise Abort @@ -224,7 +227,7 @@ class Plugin(object): if not self.core.isClientConnected(): task.removeTask() #temp.unlink(temp.name) - self.fail(_("No Client connected for captcha decrypting.")) + self.fail(_("No Client connected for captcha decrypting, or pil and tesseract not installed")) if self.pyfile.abort: raise Abort sleep(1) result = task.getResult() |