From f513f69f09b091f7c29f607d5c32ff8e35e8282a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 26 Nov 2014 22:46:44 +0100 Subject: Fix previous merge --- pyload/plugins/captcha/AdsCaptcha.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pyload/plugins/captcha/AdsCaptcha.py') diff --git a/pyload/plugins/captcha/AdsCaptcha.py b/pyload/plugins/captcha/AdsCaptcha.py index 845205e4c..d804d9942 100644 --- a/pyload/plugins/captcha/AdsCaptcha.py +++ b/pyload/plugins/captcha/AdsCaptcha.py @@ -10,7 +10,7 @@ from pyload.plugins.internal.Captcha import Captcha class AdsCaptcha(Captcha): __name__ = "AdsCaptcha" __type__ = "captcha" - __version__ = "0.04" + __version__ = "0.05" __description__ = """AdsCaptcha captcha service plugin""" __license__ = "GPLv3" @@ -53,15 +53,16 @@ class AdsCaptcha(Captcha): CaptchaId, PublicKey = key js = self.plugin.req.load("http://api.adscaptcha.com/Get.aspx", get={'CaptchaId': CaptchaId, 'PublicKey': PublicKey}) - try: challenge = re.search("challenge: '(.+?)',", js).group(1) server = re.search("server: '(.+?)',", js).group(1) except: - self.plugin.error("AdsCaptcha challenge pattern not found") + self.plugin.error(_("AdsCaptcha challenge pattern not found")) result = self.result(server, challenge) + self.plugin.logDebug("AdsCaptcha result: %s" % result, "challenge: %s" % challenge) + return challenge, result -- cgit v1.2.3