diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-08 22:15:45 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-08 22:15:45 +0100 |
commit | 88372d98619cb601cc41dfb226c71f9751b20d51 (patch) | |
tree | 3187b89c0e8b39bb511f9015f994f37f47d2bc6d /module/remote/thriftbackend/Handler.py | |
parent | Youtube fix, thrift java fix (diff) | |
download | pyload-88372d98619cb601cc41dfb226c71f9751b20d51.tar.xz |
captcha manager fix, toggle reconnect
Diffstat (limited to 'module/remote/thriftbackend/Handler.py')
-rw-r--r-- | module/remote/thriftbackend/Handler.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/module/remote/thriftbackend/Handler.py b/module/remote/thriftbackend/Handler.py index 265d50fa3..d71b4337e 100644 --- a/module/remote/thriftbackend/Handler.py +++ b/module/remote/thriftbackend/Handler.py @@ -76,6 +76,9 @@ class Handler(Iface): def togglePause(self): return self.serverMethods.toggle_pause() + def toggleReconnect(self): + return self.serverMethods.toggle_reconnect() + def statusServer(self): status = self.serverMethods.status_server() serverStatus = ServerStatus() @@ -439,8 +442,10 @@ class Handler(Iface): Parameters: - exclusive """ - t = CaptchaTask() - t.tid, t.data, t.type = self.serverMethods.get_captcha_task(exclusive) + tid, data, type = self.serverMethods.get_captcha_task(exclusive) + tid = int(tid) + + t = CaptchaTask(tid, data, type) return t def getCaptchaTaskStatus(self, tid): |