diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-11 12:17:38 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-11 12:17:38 +0200 |
commit | 7f1467c64fe5c0e902498b3252afd65cb68ed2f9 (patch) | |
tree | 9e408cdfc653731c8b84e83eecd0d26bcf2124ff /module/plugins/hoster/DateiTo.py | |
parent | Fix retry time formats (diff) | |
download | pyload-7f1467c64fe5c0e902498b3252afd65cb68ed2f9.tar.xz |
Use wait to set time in SimpleHoster plugins
Merges vuolter/pyload@bb002ac
Diffstat (limited to 'module/plugins/hoster/DateiTo.py')
-rw-r--r-- | module/plugins/hoster/DateiTo.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/hoster/DateiTo.py b/module/plugins/hoster/DateiTo.py index c08b775a4..f39f6a6fb 100644 --- a/module/plugins/hoster/DateiTo.py +++ b/module/plugins/hoster/DateiTo.py @@ -81,17 +81,15 @@ class DateiTo(SimpleHoster): if found: found = re.search(self.WAIT_PATTERN, self.html) wait_time = int(found.group(1)) if found else 30 - self.setWait(wait_time + 1, False) - self.wait(300) + self.wait(wait_time + 1, False) self.retry() def doWait(self): found = re.search(self.WAIT_PATTERN, self.html) wait_time = int(found.group(1)) if found else 30 - self.setWait(wait_time + 1, False) self.load('http://datei.to/ajax/download.php', post={'P': 'Ads'}) - self.wait() + self.wait(wait_time + 1, False) getInfo = create_getInfo(DateiTo) |