summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BitshareCom.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/BitshareCom.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/BitshareCom.py')
-rw-r--r--module/plugins/hoster/BitshareCom.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/module/plugins/hoster/BitshareCom.py b/module/plugins/hoster/BitshareCom.py
index d48329c0d..2cbbc895f 100644
--- a/module/plugins/hoster/BitshareCom.py
+++ b/module/plugins/hoster/BitshareCom.py
@@ -50,9 +50,7 @@ class BitshareCom(SimpleHoster):
if re.search(self.TRAFFIC_USED_UP, self.html):
self.logInfo("Your Traffic is used up for today. Wait 1800 seconds or reconnect!")
self.logDebug("Waiting %d seconds." % 1800)
- self.setWait(1800, True)
- self.wantReconnect = True
- self.wait()
+ self.wait(30 * 60, True)
self.retry()
# File name
@@ -93,11 +91,9 @@ class BitshareCom(SimpleHoster):
if wait > 0:
self.logDebug("Waiting %d seconds." % wait)
if wait < 120:
- self.setWait(wait, False)
- self.wait()
+ self.wait(wait, False)
else:
- self.setWait(wait - 55, True)
- self.wait()
+ self.wait(wait - 55, True)
self.retry()
# Resolve captcha