diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-30 00:37:14 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-30 00:37:14 +0200 |
commit | b96b1851029b04df13288e6cf6f46aa466df3fa0 (patch) | |
tree | ba84b390153c13e8789aaaaa8a0b75389bda10b5 /module/plugins | |
parent | Add __config__ to MultiAccount (and XFSAccount) based plugins (diff) | |
parent | [Captcha] generic fix for #1756 (diff) | |
download | pyload-b96b1851029b04df13288e6cf6f46aa466df3fa0.tar.xz |
Merge pull request #1882 from GammaC0de/patch-5
[Captcha] Requse the hoster http request
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) |