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/FshareVn.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/FshareVn.py')
-rw-r--r-- | module/plugins/hoster/FshareVn.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/hoster/FshareVn.py b/module/plugins/hoster/FshareVn.py index 34539f965..1f892ca7c 100644 --- a/module/plugins/hoster/FshareVn.py +++ b/module/plugins/hoster/FshareVn.py @@ -100,8 +100,7 @@ class FshareVn(SimpleHoster): if found: self.logInfo("Wait until %s ICT" % found.group(1)) wait_until = mktime(strptime(found.group(1), "%d/%m/%Y %H:%M")) - self.setWait(wait_until - mktime(gmtime()) - 7 * 60 * 60, True) - self.wait() + self.wait(wait_until - mktime(gmtime()) - 7 * 60 * 60, True) self.retry() elif '<ul class="message-error">' in self.html: self.logError("Unknown error occured or wait time not parsed") |