diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-03 02:13:10 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-03 02:13:10 +0100 |
commit | 8a79ad6e25210b2ec6ce74bc5b2d55dbe303dbaa (patch) | |
tree | 17ecdd8738da1e03ddb68fe3d4284a456dbe95a6 /module/plugins | |
parent | [MultiHoster] Improve info grabbing (diff) | |
download | pyload-8a79ad6e25210b2ec6ce74bc5b2d55dbe303dbaa.tar.xz |
[MultiHook] Unload if related multihoster account is not available
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/MultiHook.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py index 5cb72677f..b5ac132b7 100644 --- a/module/plugins/internal/MultiHook.py +++ b/module/plugins/internal/MultiHook.py @@ -9,7 +9,7 @@ from module.utils import remove_chars class MultiHook(Hook): __name__ = "MultiHook" __type__ = "hook" - __version__ = "0.27" + __version__ = "0.28" __config__ = [("mode" , "all;listed;unlisted", "Use for plugins (if supported)" , "all"), ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ), @@ -51,6 +51,8 @@ class MultiHook(Hook): def coreReady(self): self.account = self.core.accountManager.getAccountPlugin(self.__name__) + if not self.account: + self.setConfig('activated', False) def getURL(self, *args, **kwargs): #@TODO: Remove in 0.4.10 |