From a95c217627a1cb651b24e69f20640df40797aff9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 25 Jul 2015 09:34:18 +0200 Subject: Account rewritten (2) --- module/plugins/captcha/ReCaptcha.py | 2 +- module/plugins/captcha/SolveMedia.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/captcha') diff --git a/module/plugins/captcha/ReCaptcha.py b/module/plugins/captcha/ReCaptcha.py index 8eea606a8..6ec5e89c8 100644 --- a/module/plugins/captcha/ReCaptcha.py +++ b/module/plugins/captcha/ReCaptcha.py @@ -48,7 +48,7 @@ class ReCaptcha(CaptchaService): else: return self.challenge(key, - version=2 if re.search(self.KEY_V2_PATTERN, html or self.retrieve_data()) else 1) + version=2 if re.search(self.KEY_V2_PATTERN, data or self.retrieve_data()) else 1) def _challenge_v1(self, key): diff --git a/module/plugins/captcha/SolveMedia.py b/module/plugins/captcha/SolveMedia.py index ae6751a70..870b5fc10 100644 --- a/module/plugins/captcha/SolveMedia.py +++ b/module/plugins/captcha/SolveMedia.py @@ -29,7 +29,7 @@ class SolveMedia(CaptchaService): self.log_debug("Key: %s" % self.key) return self.key else: - self.log_warning(_("Key pattern not found") + self.log_warning(_("Key pattern not found")) return None @@ -44,7 +44,7 @@ class SolveMedia(CaptchaService): magic = re.search(r'name="magic" value="(.+?)"', html).group(1) except AttributeError: - self.log_warning(_("Magic pattern not found") + self.log_warning(_("Magic pattern not found")) magic = None try: -- cgit v1.2.3