From 586ecb5404da7cff1400a696a5a5cb316d55f3c2 Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 29 Dec 2013 17:29:45 +0100 Subject: Bring the improved wait method from 0.5 to 0.4.9 through SimpleHoster (cherry picked from commit 39e9f08b2d423db5b7b0f1e7f67c5d744b10a755) --- pyload/plugins/internal/SimpleHoster.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3