diff options
author | zapp-brannigan <zapp-brannigan@users.noreply.github.com> | 2015-02-09 12:49:43 +0100 |
---|---|---|
committer | zapp-brannigan <zapp-brannigan@users.noreply.github.com> | 2015-02-09 12:49:43 +0100 |
commit | a00d108f0214098ce41f4c6c612844323135ebc1 (patch) | |
tree | 82c691f720aa638e2c4b481b5c610520a18715a8 /module/plugins | |
parent | [UptoboxCom] Fixed login (diff) | |
download | pyload-a00d108f0214098ce41f4c6c612844323135ebc1.tar.xz |
[LoadTo.py] Update due to new Solvemedia handling
Diffstat (limited to 'module/plugins')
-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) |