diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-15 17:15:29 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-15 17:15:29 +0100 |
commit | 282362c01b67f83ff5cf677ba125a41a6d594f2c (patch) | |
tree | 7782f1a146f41fa26fdd2c4bdb1679977cf5cf35 /pyload/plugins/captcha | |
parent | Code cosmetics (diff) | |
download | pyload-282362c01b67f83ff5cf677ba125a41a6d594f2c.tar.xz |
Update plugins 2
Diffstat (limited to 'pyload/plugins/captcha')
-rw-r--r-- | pyload/plugins/captcha/AdsCaptcha.py | 4 | ||||
-rw-r--r-- | pyload/plugins/captcha/ReCaptcha.py | 4 | ||||
-rw-r--r-- | pyload/plugins/captcha/SolveMedia.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/pyload/plugins/captcha/AdsCaptcha.py b/pyload/plugins/captcha/AdsCaptcha.py index 4eabfbf9b..845205e4c 100644 --- a/pyload/plugins/captcha/AdsCaptcha.py +++ b/pyload/plugins/captcha/AdsCaptcha.py @@ -27,7 +27,7 @@ class AdsCaptcha(Captcha): html = self.plugin.html else: errmsg = _("AdsCaptcha html not found") - self.plugin.fail(errmsg) + self.plugin.error(errmsg) raise TypeError(errmsg) m = re.search(self.ID_PATTERN, html) @@ -47,7 +47,7 @@ class AdsCaptcha(Captcha): key = self.key else: errmsg = _("AdsCaptcha key not found") - self.plugin.fail(errmsg) + self.plugin.error(errmsg) raise TypeError(errmsg) CaptchaId, PublicKey = key diff --git a/pyload/plugins/captcha/ReCaptcha.py b/pyload/plugins/captcha/ReCaptcha.py index d68584c9d..4516b76de 100644 --- a/pyload/plugins/captcha/ReCaptcha.py +++ b/pyload/plugins/captcha/ReCaptcha.py @@ -25,7 +25,7 @@ class ReCaptcha(Captcha): html = self.plugin.html else: errmsg = _("ReCaptcha html not found") - self.plugin.fail(errmsg) + self.plugin.error(errmsg) raise TypeError(errmsg) m = re.search(self.KEY_PATTERN, html) or re.search(self.KEY_AJAX_PATTERN, html) @@ -44,7 +44,7 @@ class ReCaptcha(Captcha): key = self.key else: errmsg = _("ReCaptcha key not found") - self.plugin.fail(errmsg) + self.plugin.error(errmsg) raise TypeError(errmsg) js = self.plugin.req.load("http://www.google.com/recaptcha/api/challenge", get={'k': key}) diff --git a/pyload/plugins/captcha/SolveMedia.py b/pyload/plugins/captcha/SolveMedia.py index d1b9eba6a..82f1c4722 100644 --- a/pyload/plugins/captcha/SolveMedia.py +++ b/pyload/plugins/captcha/SolveMedia.py @@ -24,7 +24,7 @@ class SolveMedia(Captcha): key = self.key else: errmsg = _("SolveMedia key not found") - self.plugin.fail(errmsg) + self.plugin.error(errmsg) raise TypeError(errmsg) html = self.plugin.req.load("http://api.solvemedia.com/papi/challenge.noscript", get={'k': key}) |