diff options
author | Stefano <l.stickell@yahoo.it> | 2013-12-29 17:29:45 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-12-29 17:29:45 +0100 |
commit | 39e9f08b2d423db5b7b0f1e7f67c5d744b10a755 (patch) | |
tree | 6717dc1ff3f4ff648254a36e76ba688e0e7e4cc8 /module/plugins/internal/SimpleHoster.py | |
parent | Keep2share: fixed #445 (diff) | |
download | pyload-39e9f08b2d423db5b7b0f1e7f67c5d744b10a755.tar.xz |
Bring the improved wait method from 0.5 to 0.4.9 through SimpleHoster
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 962d7639e..47fded260 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/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() |