diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-09-28 02:51:56 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-09-28 02:51:56 +0200 |
commit | 96d7371a205c6dfd717f0a6331f741485d5a30fe (patch) | |
tree | 85789e7ccf3c5d88e58f6eaa09a0c4a419ee68a7 /module/plugins | |
parent | Merge pull request #1850 from chaosblog/patch-2 (diff) | |
download | pyload-96d7371a205c6dfd717f0a6331f741485d5a30fe.tar.xz |
[Captcha] generic fix for #1756
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/Captcha.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/Captcha.py b/module/plugins/internal/Captcha.py index d2be21a58..93642b32a 100644 --- a/module/plugins/internal/Captcha.py +++ b/module/plugins/internal/Captcha.py @@ -11,7 +11,7 @@ from module.plugins.internal.Plugin import Plugin class Captcha(Plugin): __name__ = "Captcha" __type__ = "captcha" - __version__ = "0.44" + __version__ = "0.45" __status__ = "testing" __description__ = """Base anti-captcha plugin""" @@ -49,9 +49,9 @@ class Captcha(Plugin): pass - def decrypt(self, url, get={}, post={}, ref=False, cookies=True, decode=False, + def decrypt(self, url, get={}, post={}, ref=False, cookies=True, decode=False, req=None, input_type='jpg', output_type='textual', ocr=True, timeout=120): - img = self.load(url, get=get, post=post, ref=ref, cookies=cookies, decode=decode) + img = self.load(url, get=get, post=post, ref=ref, cookies=cookies, decode=decode, req=req or self.plugin.req) return self._decrypt(img, input_type, output_type, ocr, timeout) |