diff options
author | 2011-10-13 15:25:32 +0200 | |
---|---|---|
committer | 2011-10-13 15:25:32 +0200 | |
commit | 43460c40d00819535dfeecfdb80f8a608f2190fd (patch) | |
tree | 351518d8db3e5ee12689af4e019d5c3fc90bd212 /module/HookManager.py | |
parent | patches from #392 (diff) | |
download | pyload-43460c40d00819535dfeecfdb80f8a608f2190fd.tar.xz |
improvement for hook plugins, new internal plugin type
Diffstat (limited to 'module/HookManager.py')
-rw-r--r-- | module/HookManager.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/HookManager.py b/module/HookManager.py index be5f548d7..88ce62da6 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -22,7 +22,6 @@ import __builtin__ import traceback from thread import start_new_thread from threading import RLock -from time import time from types import MethodType @@ -270,8 +269,8 @@ class HookManager: def unrarFinished(self, folder, fname): self.dispatchEvent("unrarFinished", folder, fname) - def startThread(self, function, pyfile): - t = HookThread(self.core.threadManager, function, pyfile) + def startThread(self, function, *args, **kwargs): + t = HookThread(self.core.threadManager, function, args, kwargs) def activePlugins(self): """ returns all active plugins """ |