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