From 4e918edba6c3808b095eab1bad137a2a8cab970d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 17 Dec 2011 21:53:57 +0100 Subject: updated plugin api and plugin manager --- module/PluginThread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/PluginThread.py') diff --git a/module/PluginThread.py b/module/PluginThread.py index 56c36c778..e91d6d819 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -502,7 +502,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]]) -- cgit v1.2.3 From 958bf611f5d9d117f19f824990ec6fd6b537e967 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 22 Dec 2011 23:45:38 +0100 Subject: accountmanager v2, delete your accounts.conf and re-enter them in pyload, new nice debug functions, try core.shell() and core.breakpoint() --- module/PluginThread.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'module/PluginThread.py') diff --git a/module/PluginThread.py b/module/PluginThread.py index e91d6d819..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: -- cgit v1.2.3