diff options
| author | 2010-09-27 12:26:41 +0200 | |
|---|---|---|
| committer | 2010-09-27 12:26:41 +0200 | |
| commit | 185a7447a8fa08a2bea704376e61e70379e529cd (patch) | |
| tree | f8480bf0735c8b1703bd1bd0a31b813e86058c1d /module/plugins/Plugin.py | |
| parent | display correct file size when starting (diff) | |
| download | pyload-185a7447a8fa08a2bea704376e61e70379e529cd.tar.xz | |
ignore useless netload api results
Diffstat (limited to 'module/plugins/Plugin.py')
| -rw-r--r-- | module/plugins/Plugin.py | 7 | 
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 | 
