summaryrefslogtreecommitdiffstats
path: root/module/plugins/Base.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-23 21:56:42 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-23 21:56:42 +0100
commit6e8a0f79f5ad7182a0bc35308ae06c63222667ed (patch)
tree0026179d34f19b64bc689c63af85b949ce57fb83 /module/plugins/Base.py
parentshow button when files are selected (diff)
downloadpyload-6e8a0f79f5ad7182a0bc35308ae06c63222667ed.tar.xz
implemented interactions for multi user, show waiting queries on webui
Diffstat (limited to 'module/plugins/Base.py')
-rw-r--r--module/plugins/Base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/Base.py b/module/plugins/Base.py
index 6ae2da249..70805b7f3 100644
--- a/module/plugins/Base.py
+++ b/module/plugins/Base.py
@@ -304,9 +304,8 @@ class Base(object):
ocr = OCR()
result = ocr.get_captcha(temp_file.name)
else:
- task = self.im.newCaptchaTask(img, imgtype, temp_file.name, result_type)
+ task = self.im.createCaptchaTask(img, imgtype, temp_file.name, self.__name__, result_type)
self.task = task
- self.im.handleTask(task)
while task.isWaiting():
if self.abort():
@@ -322,7 +321,7 @@ class Base(object):
elif task.error:
self.fail(task.error)
elif not task.result:
- self.fail(_("No captcha result obtained in appropriate time by any of the plugins."))
+ self.fail(_("No captcha result obtained in appropriate time."))
result = task.result
self.log.debug("Received captcha result: %s" % str(result))