From 6394d1974236412f1156f204405ee3b9c21e6150 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 30 Dec 2015 21:21:23 +0100 Subject: Improve Captcha task managing --- module/plugins/captcha/ReCaptcha.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/plugins/captcha/ReCaptcha.py') diff --git a/module/plugins/captcha/ReCaptcha.py b/module/plugins/captcha/ReCaptcha.py index b30f110d4..535525761 100644 --- a/module/plugins/captcha/ReCaptcha.py +++ b/module/plugins/captcha/ReCaptcha.py @@ -12,7 +12,7 @@ from module.plugins.internal.CaptchaService import CaptchaService class ReCaptcha(CaptchaService): __name__ = "ReCaptcha" __type__ = "captcha" - __version__ = "0.20" + __version__ = "0.21" __status__ = "testing" __description__ = """ReCaptcha captcha service plugin""" @@ -85,8 +85,6 @@ class ReCaptcha(CaptchaService): cookies=True, input_type="jpg") - self.log_debug("Result: %s" % result) - return result, challenge @@ -175,7 +173,7 @@ class ReCaptcha(CaptchaService): timeout=30) response = base64.b64encode('{"response":"%s"}' % captcha_response) - self.log_debug("Result: %s" % response) + self.log_debug("Result: `%s`" % response) timeToSolve = int(round(time.time() * 1000)) - millis_captcha_loading timeToSolveMore = timeToSolve + int(float("0." + str(random.randint(1, 99999999))) * 500) -- cgit v1.2.3