diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-13 22:30:56 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-13 22:30:56 +0100 |
commit | 94b7ed15d217a61f2102be326aa28509f3e379b5 (patch) | |
tree | beed961f31d3db9879a96fed4092e33508a3777f /module/remote/thriftbackend/Handler.py | |
parent | captcha fix (diff) | |
download | pyload-94b7ed15d217a61f2102be326aa28509f3e379b5.tar.xz |
fixes last commit
Diffstat (limited to 'module/remote/thriftbackend/Handler.py')
-rw-r--r-- | module/remote/thriftbackend/Handler.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/remote/thriftbackend/Handler.py b/module/remote/thriftbackend/Handler.py index 7209c6bd5..62896af9f 100644 --- a/module/remote/thriftbackend/Handler.py +++ b/module/remote/thriftbackend/Handler.py @@ -6,7 +6,7 @@ from thriftgen.pyload.Pyload import Iface from module.PyFile import PyFile from module.utils import freeSpace -from base64 import b64encode +from base64 import standard_b64encode class Handler(Iface): def __init__(self, backend): @@ -444,10 +444,8 @@ class Handler(Iface): Parameters: - exclusive """ - t = CaptchaTask() - t.tid, t.data, t.type = self.serverMethods.get_captcha_task(exclusive) - t.tid = int(t.tid) - t.data = b64encode(t.data) + tid, data, type = self.serverMethods.get_captcha_task(exclusive) + t = CaptchaTask(int(tid), standard_b64encode(data), type) return t def getCaptchaTaskStatus(self, tid): |