From f5084f9c75e5fe1f86b3fc02408133a48b354863 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 2 Oct 2015 10:50:25 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1920 --- module/plugins/hoster/DateiTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/DateiTo.py') diff --git a/module/plugins/hoster/DateiTo.py b/module/plugins/hoster/DateiTo.py index 42aed2c77..7cc22158d 100644 --- a/module/plugins/hoster/DateiTo.py +++ b/module/plugins/hoster/DateiTo.py @@ -35,7 +35,7 @@ class DateiTo(SimpleHoster): data = {'P': 'I', 'ID': self.info['pattern']['ID']} recaptcha = ReCaptcha(self) - for _i in xrange(10): + for _i in xrange(3): self.log_debug("URL", url, "POST", data) self.html = self.load(url, post=data) self.check_errors() @@ -57,7 +57,7 @@ class DateiTo(SimpleHoster): if url.endswith('recaptcha.php'): data['recaptcha_response_field'], data['recaptcha_challenge_field'] = recaptcha.challenge() else: - self.fail(_("Too bad...")) + return self.link = self.html -- cgit v1.2.3