summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UnibytesCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-04-11 12:17:38 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-11 12:17:38 +0200
commit7f1467c64fe5c0e902498b3252afd65cb68ed2f9 (patch)
tree9e408cdfc653731c8b84e83eecd0d26bcf2124ff /module/plugins/hoster/UnibytesCom.py
parentFix retry time formats (diff)
downloadpyload-7f1467c64fe5c0e902498b3252afd65cb68ed2f9.tar.xz
Use wait to set time in SimpleHoster plugins
Merges vuolter/pyload@bb002ac
Diffstat (limited to 'module/plugins/hoster/UnibytesCom.py')
-rw-r--r--module/plugins/hoster/UnibytesCom.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/hoster/UnibytesCom.py b/module/plugins/hoster/UnibytesCom.py
index c7deba89c..05921e13a 100644
--- a/module/plugins/hoster/UnibytesCom.py
+++ b/module/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: