From a2990617833baab37f39d0fe5f877849643e4738 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 13 Mar 2011 21:21:44 +0100 Subject: captcha fix --- pyLoadGui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pyLoadGui.py') diff --git a/pyLoadGui.py b/pyLoadGui.py index dd74f3653..6935c502e 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -23,6 +23,8 @@ import sys from uuid import uuid4 as uuid # should be above PyQt imports from time import sleep, time +from base64 import b64decode + from PyQt4.QtCore import * from PyQt4.QtGui import * @@ -639,11 +641,11 @@ class main(QObject): def checkCaptcha(self): if self.connector.isCaptchaWaiting() and self.mainWindow.captchaDock.isFree(): - t = self.connector.getCaptchaTask() + t = self.connector.getCaptchaTask(False) self.mainWindow.show() self.mainWindow.raise_() self.mainWindow.activateWindow() - self.mainWindow.captchaDock.emit(SIGNAL("setTask"), t.tid, t.data, t.type) + self.mainWindow.captchaDock.emit(SIGNAL("setTask"), t.tid, b64decode(t.data), t.type) elif not self.mainWindow.captchaDock.isFree(): status = self.connector.getCaptchaTaskStatus(self.mainWindow.captchaDock.currentID) if not (status == "user" or status == "shared-user"): -- cgit v1.2.3