summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index 56c36c778..984b88e16 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -40,7 +40,6 @@ from Api import OnlineStatus
class PluginThread(Thread):
"""abstract base class for thread types"""
- #----------------------------------------------------------------------
def __init__(self, manager):
"""Constructor"""
Thread.__init__(self)
@@ -137,7 +136,7 @@ class PluginThread(Thread):
if pyfile.pluginname in self.m.core.config.plugin:
dump += "\n\nCONFIG: \n\n"
- dump += pformat(self.m.core.config.plugin[pyfile.pluginname]) + "\n"
+ dump += pformat(self.m.core.config.values) + "\n"
return dump
@@ -150,7 +149,6 @@ class PluginThread(Thread):
class DownloadThread(PluginThread):
"""thread for downloading files from 'real' hoster plugins"""
- #----------------------------------------------------------------------
def __init__(self, manager):
"""Constructor"""
PluginThread.__init__(self, manager)
@@ -160,7 +158,6 @@ class DownloadThread(PluginThread):
self.start()
- #----------------------------------------------------------------------
def run(self):
"""run method"""
pyfile = None
@@ -461,7 +458,7 @@ class HookThread(PluginThread):
#dirty method to filter out exceptions
if "unexpected keyword argument 'thread'" not in e.args[0]:
raise
-
+
del self.kwargs["thread"]
self.f(*self.args, **self.kwargs)
finally:
@@ -502,7 +499,7 @@ class InfoThread(PluginThread):
# filter out container plugins
- for name in self.m.core.pluginManager.containerPlugins:
+ for name in self.m.core.pluginManager.getPlugins("container"):
if name in plugins:
container.extend([(name, url) for url in plugins[name]])