diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-31 10:38:51 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-31 10:38:51 +0200 |
commit | cc3c575a68fd4b585f0e4af586e027fddb0fe605 (patch) | |
tree | 511a34c2f26d8f3ab012fb34ddce3b80fb93d531 /module/plugins/internal/MultiHook.py | |
parent | Fix https://github.com/pyload/pyload/issues/1628 (diff) | |
download | pyload-cc3c575a68fd4b585f0e4af586e027fddb0fe605.tar.xz |
Fix and improve account logic
Diffstat (limited to 'module/plugins/internal/MultiHook.py')
-rw-r--r-- | module/plugins/internal/MultiHook.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py index b64ff08c0..ea515d69a 100644 --- a/module/plugins/internal/MultiHook.py +++ b/module/plugins/internal/MultiHook.py @@ -11,7 +11,7 @@ from module.utils import decode, remove_chars class MultiHook(Hook): __name__ = "MultiHook" __type__ = "hook" - __version__ = "0.52" + __version__ = "0.53" __status__ = "testing" __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"), @@ -84,8 +84,7 @@ class MultiHook(Hook): def load_account(self): self.account = self.pyload.accountManager.getAccountPlugin(self.pluginname) - if self.account and not self.account.can_use(): - self.account = None + self.load_account() if not self.account and hasattr(self.pluginclass, "LOGIN_ACCOUNT") and self.pluginclass.LOGIN_ACCOUNT: self.log_warning(_("Hook plugin will be deactivated due missing account reference")) |