diff options
author | Paul King <devnull@localhost> | 2011-05-07 01:44:17 +0200 |
---|---|---|
committer | Paul King <devnull@localhost> | 2011-05-07 01:44:17 +0200 |
commit | 64c2f6e7d91cc6502fe31ffe8c3bd032f6e415c1 (patch) | |
tree | e07192db175146f7b20817370fd11271b98bad02 /module/plugins/ReCaptcha.py | |
parent | FilesonicCom API fix, New hoster FilefactoryCom (diff) | |
download | pyload-64c2f6e7d91cc6502fe31ffe8c3bd032f6e415c1.tar.xz |
Fix 294 - refactor plugin
Diffstat (limited to 'module/plugins/ReCaptcha.py')
-rw-r--r-- | module/plugins/ReCaptcha.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/plugins/ReCaptcha.py b/module/plugins/ReCaptcha.py index ec366695a..6f7ebe22c 100644 --- a/module/plugins/ReCaptcha.py +++ b/module/plugins/ReCaptcha.py @@ -12,6 +12,10 @@ class ReCaptcha(): server = re.search("server : '(.*?)',", js).group(1) except: self.plugin.fail("recaptcha error") - result = self.plugin.decryptCaptcha("%simage"%server, get={"c":challenge}, cookies=True, imgtype="jpg") + result = self.result(server,challenge) return challenge, result + + def result(self, server, challenge): + return self.plugin.decryptCaptcha("%simage"%server, get={"c":challenge}, cookies=True, imgtype="jpg") + |