diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 16:02:14 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 16:02:14 +0100 |
commit | 1a6d4ab20645e8dda3f0c61d10ecbcc16312eec7 (patch) | |
tree | 8029cd50b60f150f40325de2b146c6e94cc865b9 /module/plugins/internal/SimpleCrypter.py | |
parent | [Plugin] Improve retry and wait methods (diff) | |
download | pyload-1a6d4ab20645e8dda3f0c61d10ecbcc16312eec7.tar.xz |
[SimpleCrypter] Wait method
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r-- | module/plugins/internal/SimpleCrypter.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index 2fa0c2df3..1f41a7e5a 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -7,14 +7,14 @@ from traceback import print_exc from module.network.RequestFactory import getURL from module.plugins.Crypter import Crypter from module.plugins.Plugin import Fail -from module.plugins.internal.SimpleHoster import _error, replace_patterns, set_cookies +from module.plugins.internal.SimpleHoster import _error, _wait, replace_patterns, set_cookies from module.utils import fixup, html_unescape class SimpleCrypter(Crypter): __name__ = "SimpleCrypter" __type__ = "crypter" - __version__ = "0.21" + __version__ = "0.22" __pattern__ = None __config__ = [("use_subfolder", "bool", "Save package to subfolder", True), #: Overrides core.config['general']['folder_per_package'] @@ -164,5 +164,10 @@ class SimpleCrypter(Crypter): self.package_links += self.getLinks() + #@TODO: Remove in 0.4.10 + def wait(self, seconds=0, reconnect=None): + return _wait(self, seconds, reconnect) + + def error(self, reason="", type="parse"): return _error(self, reason, type) |