diff options
author | 2015-10-02 10:50:25 +0200 | |
---|---|---|
committer | 2015-10-02 10:50:25 +0200 | |
commit | f5084f9c75e5fe1f86b3fc02408133a48b354863 (patch) | |
tree | 77258237a2919cd6423e42e38861456d3b937940 /module/plugins/hoster/UnibytesCom.py | |
parent | [Account] Improve parse_traffic method + code cosmetics (diff) | |
download | pyload-f5084f9c75e5fe1f86b3fc02408133a48b354863.tar.xz |
Fix https://github.com/pyload/pyload/issues/1920
Diffstat (limited to 'module/plugins/hoster/UnibytesCom.py')
-rw-r--r-- | module/plugins/hoster/UnibytesCom.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/hoster/UnibytesCom.py b/module/plugins/hoster/UnibytesCom.py index 50006dd27..6af02438f 100644 --- a/module/plugins/hoster/UnibytesCom.py +++ b/module/plugins/hoster/UnibytesCom.py @@ -35,7 +35,7 @@ class UnibytesCom(SimpleHoster): self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 0) - for _i in xrange(8): + for _i in xrange(3): self.log_debug(action, post_data) self.html = self.load(urlparse.urljoin(domain, action), post=post_data) @@ -46,7 +46,7 @@ class UnibytesCom(SimpleHoster): if '>Somebody else is already downloading using your IP-address<' in self.html: self.wait(10 * 60, True) - self.retry() + self.restart(premium=True) if post_data['step'] == "last": m = re.search(self.LINK_FREE_PATTERN, self.html) @@ -67,9 +67,6 @@ class UnibytesCom(SimpleHoster): elif last_step in ("captcha", "last"): post_data['captcha'] = self.captcha.decrypt(urlparse.urljoin(domain, "captcha.jpg")) - else: - self.fail(_("No valid captcha code entered")) - self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 1) |