diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 09:34:18 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 09:34:18 +0200 |
commit | a95c217627a1cb651b24e69f20640df40797aff9 (patch) | |
tree | 63fcbffd55b704b461446c1724022e76373dac12 /module/plugins/captcha | |
parent | Account rewritten (diff) | |
download | pyload-a95c217627a1cb651b24e69f20640df40797aff9.tar.xz |
Account rewritten (2)
Diffstat (limited to 'module/plugins/captcha')
-rw-r--r-- | module/plugins/captcha/ReCaptcha.py | 2 | ||||
-rw-r--r-- | module/plugins/captcha/SolveMedia.py | 4 |
2 files changed, 3 insertions, 3 deletions
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: |