diff options
author | 2015-07-31 05:48:44 +0200 | |
---|---|---|
committer | 2015-07-31 05:48:44 +0200 | |
commit | dc47212c8e801d380e4db4bd1bec0bf183de9de1 (patch) | |
tree | 3d8a859e0028def05da2f1399199a5463f123159 /module/plugins/captcha | |
parent | Fix https://github.com/pyload/pyload/issues/1602 (2) (diff) | |
download | pyload-dc47212c8e801d380e4db4bd1bec0bf183de9de1.tar.xz |
[Captcha] Fix _decrypt method
Diffstat (limited to 'module/plugins/captcha')
-rw-r--r-- | module/plugins/captcha/ReCaptcha.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/captcha/ReCaptcha.py b/module/plugins/captcha/ReCaptcha.py index a5aa356e2..5931159c5 100644 --- a/module/plugins/captcha/ReCaptcha.py +++ b/module/plugins/captcha/ReCaptcha.py @@ -84,8 +84,7 @@ class ReCaptcha(CaptchaService): result = self.decrypt(urlparse.urljoin(server, "image"), get={'c': challenge}, cookies=True, - input_type="jpg", - ocr=False) + input_type="jpg") self.log_debug("Result: %s" % result) @@ -173,7 +172,8 @@ class ReCaptcha(CaptchaService): captcha_response = self.decrypt("https://www.google.com/recaptcha/api2/payload", get={'c':token3.group(1), 'k':key}, cookies=True, - ocr=False) + ocr=False, + timeout=30) response = b64encode('{"response":"%s"}' % captcha_response) self.log_debug("Result: %s" % response) |