diff options
author | mkaay <mkaay@mkaay.de> | 2011-03-13 21:21:44 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-03-13 21:21:44 +0100 |
commit | a2990617833baab37f39d0fe5f877849643e4738 (patch) | |
tree | 2304c8f7380f4a688f471d83378bfec07b1256a2 /pyLoadGui.py | |
parent | make sure everything is written to disk before merging (diff) | |
download | pyload-a2990617833baab37f39d0fe5f877849643e4738.tar.xz |
captcha fix
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 6 |
1 files changed, 4 insertions, 2 deletions
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"): |