summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-27 12:26:41 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-27 12:26:41 +0200
commit185a7447a8fa08a2bea704376e61e70379e529cd (patch)
treef8480bf0735c8b1703bd1bd0a31b813e86058c1d /module/plugins/Plugin.py
parentdisplay correct file size when starting (diff)
downloadpyload-185a7447a8fa08a2bea704376e61e70379e529cd.tar.xz
ignore useless netload api results
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 27e54cdc2..ba65370c5 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -212,6 +212,8 @@ class Plugin(object):
temp.write(content)
temp.close()
+
+ has_plugin = self.core.pluginManager.captchaPlugins.has_key(self.__name__)
if self.core.captcha:
Ocr = self.core.pluginManager.getCaptchaPlugin(self.__name__)
@@ -234,7 +236,10 @@ class Plugin(object):
if not self.core.isClientConnected():
task.removeTask()
#temp.unlink(temp.name)
- self.fail(_("No Client connected for captcha decrypting, or pil and tesseract not installed"))
+ if has_plugin:
+ self.fail(_("Pil and tesseract not installed and no Client connected for captcha decrypting"))
+ else:
+ self.fail(_("No Client connected for captcha decrypting"))
if self.pyfile.abort:
task.removeTask()
raise Abort