diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-09 17:21:49 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-09 17:21:49 +0100 |
commit | 5a0adb38f6ed5eaba0fab771b3f1308e65df14a6 (patch) | |
tree | efc8f7f9c6d09907de81ff43db36e1240a46e143 /module/plugins/hoster/LoadTo.py | |
parent | Merge pull request #1161 from zapp-brannigan/patch-2 (diff) | |
download | pyload-5a0adb38f6ed5eaba0fab771b3f1308e65df14a6.tar.xz |
[CaptchaService] Cleanup
Diffstat (limited to 'module/plugins/hoster/LoadTo.py')
-rw-r--r-- | module/plugins/hoster/LoadTo.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/module/plugins/hoster/LoadTo.py b/module/plugins/hoster/LoadTo.py index 7e6804ceb..be330e246 100644 --- a/module/plugins/hoster/LoadTo.py +++ b/module/plugins/hoster/LoadTo.py @@ -13,7 +13,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class LoadTo(SimpleHoster): __name__ = "LoadTo" __type__ = "hoster" - __version__ = "0.21" + __version__ = "0.22" __pattern__ = r'http://(?:www\.)?load\.to/\w+' @@ -49,17 +49,20 @@ class LoadTo(SimpleHoster): # Set Timer - may be obsolete m = re.search(self.WAIT_PATTERN, self.html) if m: - self.wait(int(m.group(1))) + self.wait(m.group(1)) # Load.to is using solvemedia captchas since ~july 2014: - solvemedia = SolveMedia(self) + solvemedia = SolveMedia(self) captcha_key = solvemedia.detect_key() if captcha_key is None: self.download(download_url) else: - response, challenge = solvemedia.challenge(captcha_key,None,pyfile.url) - self.download(download_url, post={"adcopy_challenge": challenge, "adcopy_response": response,"returnUrl":pyfile.url}) + response, challenge = solvemedia.challenge(captcha_key) + self.download(download_url, + post={'adcopy_challenge': challenge, + 'adcopy_response' : response, + 'returnUrl' : pyfile.url}) getInfo = create_getInfo(LoadTo) |