summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/captcha/AdsCaptcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-26 22:46:44 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-26 22:46:44 +0100
commitf513f69f09b091f7c29f607d5c32ff8e35e8282a (patch)
tree58e77618449280c4ae1b1f6095d80a352ea82d31 /pyload/plugins/captcha/AdsCaptcha.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-f513f69f09b091f7c29f607d5c32ff8e35e8282a.tar.xz
Fix previous merge
Diffstat (limited to 'pyload/plugins/captcha/AdsCaptcha.py')
-rw-r--r--pyload/plugins/captcha/AdsCaptcha.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyload/plugins/captcha/AdsCaptcha.py b/pyload/plugins/captcha/AdsCaptcha.py
index 845205e4c..d804d9942 100644
--- a/pyload/plugins/captcha/AdsCaptcha.py
+++ b/pyload/plugins/captcha/AdsCaptcha.py
@@ -10,7 +10,7 @@ from pyload.plugins.internal.Captcha import Captcha
class AdsCaptcha(Captcha):
__name__ = "AdsCaptcha"
__type__ = "captcha"
- __version__ = "0.04"
+ __version__ = "0.05"
__description__ = """AdsCaptcha captcha service plugin"""
__license__ = "GPLv3"
@@ -53,15 +53,16 @@ class AdsCaptcha(Captcha):
CaptchaId, PublicKey = key
js = self.plugin.req.load("http://api.adscaptcha.com/Get.aspx", get={'CaptchaId': CaptchaId, 'PublicKey': PublicKey})
-
try:
challenge = re.search("challenge: '(.+?)',", js).group(1)
server = re.search("server: '(.+?)',", js).group(1)
except:
- self.plugin.error("AdsCaptcha challenge pattern not found")
+ self.plugin.error(_("AdsCaptcha challenge pattern not found"))
result = self.result(server, challenge)
+ self.plugin.logDebug("AdsCaptcha result: %s" % result, "challenge: %s" % challenge)
+
return challenge, result