summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DateiTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-02 10:50:25 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-02 10:50:25 +0200
commitf5084f9c75e5fe1f86b3fc02408133a48b354863 (patch)
tree77258237a2919cd6423e42e38861456d3b937940 /module/plugins/hoster/DateiTo.py
parent[Account] Improve parse_traffic method + code cosmetics (diff)
downloadpyload-f5084f9c75e5fe1f86b3fc02408133a48b354863.tar.xz
Fix https://github.com/pyload/pyload/issues/1920
Diffstat (limited to 'module/plugins/hoster/DateiTo.py')
-rw-r--r--module/plugins/hoster/DateiTo.py4
1 files changed, 2 insertions, 2 deletions
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