summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar fragonib <devnull@localhost> 2011-05-30 23:29:34 +0200
committerGravatar fragonib <devnull@localhost> 2011-05-30 23:29:34 +0200
commitc600bbc3ab7c6fe22d213108086a44ad8f929ca4 (patch)
treed393dd647df212ba94264ead42032dacfb8581e3 /pyLoadCore.py
parentServeral Plugins: Clean up (diff)
downloadpyload-c600bbc3ab7c6fe22d213108086a44ad8f929ca4.tar.xz
Support for positional captchas
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 593fb046e..a4311b75b 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -775,10 +775,10 @@ class ServerMethods():
task = self.core.captchaManager.getTask()
if task:
task.setWatingForUser(exclusive=exclusive)
- c = task.getCaptcha()
- return str(task.id), c[0], str(c[1])
+ captcha_info = task.getCaptcha()
+ return (task.id,) + captcha_info
else:
- return None, None, None
+ return None, None, None, None
def get_task_status(self, tid):
self.core.lastClientConnected = time()