diff options
author | fragonib <devnull@localhost> | 2011-05-30 23:29:34 +0200 |
---|---|---|
committer | fragonib <devnull@localhost> | 2011-05-30 23:29:34 +0200 |
commit | c600bbc3ab7c6fe22d213108086a44ad8f929ca4 (patch) | |
tree | d393dd647df212ba94264ead42032dacfb8581e3 /pyLoadCore.py | |
parent | Serveral Plugins: Clean up (diff) | |
download | pyload-c600bbc3ab7c6fe22d213108086a44ad8f929ca4.tar.xz |
Support for positional captchas
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 6 |
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() |