From 8a79ad6e25210b2ec6ce74bc5b2d55dbe303dbaa Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 3 Jan 2015 02:13:10 +0100 Subject: [MultiHook] Unload if related multihoster account is not available --- module/plugins/internal/MultiHook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/plugins/internal') 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 -- cgit v1.2.3