diff options
| author | 2015-01-24 02:54:04 +0100 | |
|---|---|---|
| committer | 2015-01-24 02:54:04 +0100 | |
| commit | 85945226e59dfe75b4005ad3f7db5af41b81172b (patch) | |
| tree | 34a230dbd96833a8ccc7a46694662866cbfc27b6 /module/plugins | |
| parent | [SimpleHoster] Fix https://github.com/pyload/pyload/issues/1070 (diff) | |
| download | pyload-85945226e59dfe75b4005ad3f7db5af41b81172b.tar.xz | |
[CaptchaService] Fix typo
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/internal/CaptchaService.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/module/plugins/internal/CaptchaService.py b/module/plugins/internal/CaptchaService.py index 0223f9a5a..c6e83fe7d 100644 --- a/module/plugins/internal/CaptchaService.py +++ b/module/plugins/internal/CaptchaService.py @@ -12,7 +12,7 @@ from module.common.json_layer import json_loads  class CaptchaService:      __name__    = "CaptchaService" -    __version__ = "0.19" +    __version__ = "0.20"      __description__ = """Base captcha service plugin"""      __license__     = "GPLv3" @@ -40,7 +40,7 @@ class CaptchaService:  class ReCaptcha(CaptchaService):      __name__    = "ReCaptcha" -    __version__ = "0.10" +    __version__ = "0.11"      __description__ = """ReCaptcha captcha service plugin"""      __license__     = "GPLv3" @@ -81,8 +81,8 @@ class ReCaptcha(CaptchaService):                  self.plugin.fail(errmsg)                  raise TypeError(errmsg) -        challenge = "challenge_v%s" % ((version if version in (1, 2) else -                                       (2 if re.search(self.KEY_V2_PATTERN, html) else 1)) +        challenge = "challenge_v%s" % (version if version in (1, 2) else +                                       2 if re.search(self.KEY_V2_PATTERN, html) else 1)          return getattr(self, challenge)(key, html) | 
