summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/SolveMedia.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-14 16:08:07 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 21:19:38 +0100
commit299a26f5422f7309dafb30a6876e0c5d164bf92c (patch)
tree2ac7a1937f096334edbf8011bcd015d88d0307bc /module/plugins/captcha/SolveMedia.py
parentRewrite utils (1) (diff)
downloadpyload-299a26f5422f7309dafb30a6876e0c5d164bf92c.tar.xz
Update captchas
Diffstat (limited to 'module/plugins/captcha/SolveMedia.py')
-rw-r--r--module/plugins/captcha/SolveMedia.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/captcha/SolveMedia.py b/module/plugins/captcha/SolveMedia.py
index 7acb7d85d..f5fb28fa0 100644
--- a/module/plugins/captcha/SolveMedia.py
+++ b/module/plugins/captcha/SolveMedia.py
@@ -9,7 +9,7 @@ from module.plugins.internal.CaptchaService import CaptchaService
class SolveMedia(CaptchaService):
__name__ = "SolveMedia"
__type__ = "captcha"
- __version__ = "0.16"
+ __version__ = "0.17"
__status__ = "testing"
__description__ = """SolveMedia captcha service plugin"""
@@ -36,7 +36,7 @@ class SolveMedia(CaptchaService):
def challenge(self, key=None, data=None):
key = key or self.retrieve_key(data)
- html = self.plugin.load("http://api.solvemedia.com/papi/challenge.noscript",
+ html = self.pyfile.plugin.load("http://api.solvemedia.com/papi/challenge.noscript",
get={'k': key})
for i in xrange(1, 11):
@@ -62,10 +62,10 @@ class SolveMedia(CaptchaService):
except Fail, e:
self.log_warning(e, trace=True)
- self.plugin.invalidCaptcha()
+ self.pyfile.plugin.invalidCaptcha()
result = None
- html = self.plugin.load("http://api.solvemedia.com/papi/verify.noscript",
+ html = self.pyfile.plugin.load("http://api.solvemedia.com/papi/verify.noscript",
post={'adcopy_response' : result,
'k' : key,
'l' : "en",
@@ -73,7 +73,7 @@ class SolveMedia(CaptchaService):
's' : "standard",
'magic' : magic,
'adcopy_challenge': challenge,
- 'ref' : self.plugin.pyfile.url})
+ 'ref' : self.pyfile.url})
try:
redirect = re.search(r'URL=(.+?)">', html).group(1)
@@ -84,7 +84,7 @@ class SolveMedia(CaptchaService):
if "error" in html:
self.log_warning(_("Captcha code was invalid"))
self.log_debug("Retry #%d" % i)
- html = self.plugin.load(redirect)
+ html = self.pyfile.plugin.load(redirect)
else:
break