diff options
author | Stefano <l.stickell@yahoo.it> | 2013-12-29 17:29:45 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-21 16:47:36 +0200 |
commit | 586ecb5404da7cff1400a696a5a5cb316d55f3c2 (patch) | |
tree | 2e3e617c9ada222280e8c9b2ac46e438227a35b9 | |
parent | Keep2share: fixed #445 (diff) | |
download | pyload-586ecb5404da7cff1400a696a5a5cb316d55f3c2.tar.xz |
Bring the improved wait method from 0.5 to 0.4.9 through SimpleHoster
(cherry picked from commit 39e9f08b2d423db5b7b0f1e7f67c5d744b10a755)
-rw-r--r-- | pyload/plugins/internal/SimpleHoster.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pyload/plugins/internal/SimpleHoster.py b/pyload/plugins/internal/SimpleHoster.py index 962d7639e..47fded260 100644 --- a/pyload/plugins/internal/SimpleHoster.py +++ b/pyload/plugins/internal/SimpleHoster.py @@ -163,7 +163,7 @@ class PluginParseError(Exception): class SimpleHoster(Hoster): __name__ = "SimpleHoster" - __version__ = "0.31" + __version__ = "0.32" __pattern__ = None __type__ = "hoster" __description__ = """Base hoster plugin""" @@ -277,3 +277,9 @@ class SimpleHoster(Hoster): size = self.pyfile.size / 1024 self.logInfo("Filesize: %i KiB, Traffic left for user %s: %i KiB" % (size, self.user, traffic)) return size <= traffic + + # TODO: Remove in 0.5 + def wait(self, seconds=False, reconnect=False): + if seconds: + self.setWait(seconds, reconnect) + super(SimpleHoster, self).wait() |