diff options
Diffstat (limited to 'module/plugins/ReCaptcha.py')
-rw-r--r-- | module/plugins/ReCaptcha.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/ReCaptcha.py b/module/plugins/ReCaptcha.py index d29530a64..ec366695a 100644 --- a/module/plugins/ReCaptcha.py +++ b/module/plugins/ReCaptcha.py @@ -5,13 +5,13 @@ class ReCaptcha(): self.plugin = plugin def challenge(self, id): - js = self.plugin.req.load("http://api.recaptcha.net/challenge", get={"k":id}, cookies=True) + js = self.plugin.req.load("http://www.google.com/recaptcha/api/challenge", get={"k":id}, cookies=True) try: challenge = re.search("challenge : '(.*?)',", js).group(1) server = re.search("server : '(.*?)',", js).group(1) except: self.plugin.fail("recaptcha error") - result = self.plugin.decryptCaptcha("%simage"%server, get={"c":challenge}, cookies=True) + result = self.plugin.decryptCaptcha("%simage"%server, get={"c":challenge}, cookies=True, imgtype="jpg") return challenge, result |