From 52b5c2a15b2dfa9bcc2ffdcc90b8e3f29fdaa7d8 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 11 Apr 2014 12:17:38 +0200 Subject: Use wait to set time in SimpleHoster plugins Merges vuolter/pyload@bb002ac (cherry picked from commit 7f1467c64fe5c0e902498b3252afd65cb68ed2f9) --- pyload/plugins/hoster/UnibytesCom.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pyload/plugins/hoster/UnibytesCom.py') diff --git a/pyload/plugins/hoster/UnibytesCom.py b/pyload/plugins/hoster/UnibytesCom.py index c7deba89c..05921e13a 100644 --- a/pyload/plugins/hoster/UnibytesCom.py +++ b/pyload/plugins/hoster/UnibytesCom.py @@ -50,8 +50,7 @@ class UnibytesCom(SimpleHoster): break if '>Somebody else is already downloading using your IP-address<' in self.html: - self.setWait(600, True) - self.wait() + self.wait(10 * 60, True) self.retry() if post_data['step'] == 'last': @@ -68,8 +67,7 @@ class UnibytesCom(SimpleHoster): if last_step == 'timer': found = re.search(self.WAIT_PATTERN, self.html) - self.setWait(int(found.group(1)) if found else 60, False) - self.wait() + self.wait(int(found.group(1)) if found else 60, False) elif last_step in ('captcha', 'last'): post_data['captcha'] = self.decryptCaptcha(self.DOMAIN + '/captcha.jpg') else: -- cgit v1.2.3