summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/internal/MultiHook.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-10 14:50:24 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-10 14:50:24 +0200
commitc12cb8adcc0eef5ffc11762d85cae9f5ff8c2921 (patch)
tree3d2b5a37c18414714f68e721b52ca393dd7e75a9 /pyload/plugin/internal/MultiHook.py
parent[README] Update (2) (diff)
parentadded: configdata of deleted or outdated plugins are deletedfrom config (diff)
downloadpyload-c12cb8adcc0eef5ffc11762d85cae9f5ff8c2921.tar.xz
Merge pull request #2 from ardi69/0.4.10
makes the plugins runable
Diffstat (limited to 'pyload/plugin/internal/MultiHook.py')
-rw-r--r--pyload/plugin/internal/MultiHook.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pyload/plugin/internal/MultiHook.py b/pyload/plugin/internal/MultiHook.py
index 5e828cd5e..acf17f6dc 100644
--- a/pyload/plugin/internal/MultiHook.py
+++ b/pyload/plugin/internal/MultiHook.py
@@ -68,16 +68,16 @@ class MultiHook(Hook):
def _initPlugin(self):
- plugin, type = self.core.pluginManager.findPlugin(self.__name)
+ plugin = self.core.pluginManager.findPlugin("hoster", self.__class__.__name__)
if not plugin:
self.logWarning("Hook plugin will be deactivated due missing plugin reference")
self.setConfig('activated', False)
else:
- self.pluginname = self.__name
- self.plugintype = type
- self.pluginmodule = self.core.pluginManager.loadModule(type, self.__name)
- self.pluginclass = getattr(self.pluginmodule, self.__name)
+ self.pluginname = self.__class__.__name__
+ self.plugintype = "hoster"
+ self.pluginmodule = self.core.pluginManager.loadModule("hoster", self.__class__.__name__)
+ self.pluginclass = getattr(self.pluginmodule, self.__class__.__name__)
def loadAccount(self):