summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DepositfilesCom.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/DepositfilesCom.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/DepositfilesCom.py')
-rw-r--r--module/plugins/hoster/DepositfilesCom.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py
index f1b3d18e5..a05dd983a 100644
--- a/module/plugins/hoster/DepositfilesCom.py
+++ b/module/plugins/hoster/DepositfilesCom.py
@@ -33,17 +33,14 @@ class DepositfilesCom(SimpleHoster):
if re.search(r'File is checked, please try again in a minute.', self.html) is not None:
self.logInfo("DepositFiles.com: The file is being checked. Waiting 1 minute.")
- self.setWait(61)
- self.wait()
+ self.wait(61)
self.retry()
wait = re.search(r'html_download_api-limit_interval\">(\d+)</span>', self.html)
if wait:
wait_time = int(wait.group(1))
self.logInfo("%s: Traffic used up. Waiting %d seconds." % (self.__name__, wait_time))
- self.setWait(wait_time)
- self.wantReconnect = True
- self.wait()
+ self.wait(wait_time, True)
self.retry()
wait = re.search(r'>Try in (\d+) minutes or use GOLD account', self.html)