diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-06 13:26:06 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-06 13:26:06 +0200 |
commit | 6ec5c8215a774455b405db28ad9d936a5ee60215 (patch) | |
tree | 1b1333dc2fbf423b92a86f9c6078d2bc5b49e98b /module | |
parent | [LomafileCom] Premium support + updated patterns (diff) | |
download | pyload-6ec5c8215a774455b405db28ad9d936a5ee60215.tar.xz |
[CaptchaService] Restore req.load
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/CaptchaService.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/CaptchaService.py b/module/plugins/internal/CaptchaService.py index 35074bc63..b2fba0652 100644 --- a/module/plugins/internal/CaptchaService.py +++ b/module/plugins/internal/CaptchaService.py @@ -92,7 +92,7 @@ class ReCaptcha(CaptchaService): self.plugin.fail(errmsg) raise TypeError(errmsg) - js = self.plugin.load("http://www.google.com/recaptcha/api/challenge", get={'k': key}, cookies=True) + js = self.plugin.req.load("http://www.google.com/recaptcha/api/challenge", get={'k': key}, cookies=True) try: challenge = re.search("challenge : '(.+?)',", js).group(1) @@ -154,7 +154,7 @@ class AdsCaptcha(CaptchaService): CaptchaId, PublicKey = key - js = self.plugin.load("http://api.adscaptcha.com/Get.aspx", get={'CaptchaId': CaptchaId, 'PublicKey': PublicKey}, cookies=True) + js = self.plugin.req.load("http://api.adscaptcha.com/Get.aspx", get={'CaptchaId': CaptchaId, 'PublicKey': PublicKey}, cookies=True) try: challenge = re.search("challenge: '(.+?)',", js).group(1) @@ -193,7 +193,7 @@ class SolveMedia(CaptchaService): self.plugin.fail(errmsg) raise TypeError(errmsg) - html = self.plugin.load("http://api.solvemedia.com/papi/challenge.noscript", get={'k': key}, cookies=True) + html = self.plugin.req.load("http://api.solvemedia.com/papi/challenge.noscript", get={'k': key}, cookies=True) try: challenge = re.search(r'<input type=hidden name="adcopy_challenge" id="adcopy_challenge" value="([^"]+)">', html).group(1) |