From a00d108f0214098ce41f4c6c612844323135ebc1 Mon Sep 17 00:00:00 2001 From: zapp-brannigan Date: Mon, 9 Feb 2015 12:49:43 +0100 Subject: [LoadTo.py] Update due to new Solvemedia handling --- module/plugins/hoster/LoadTo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module') 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) -- cgit v1.2.3