diff options
Diffstat (limited to 'pyload/plugin/Addon.py')
-rw-r--r-- | pyload/plugin/Addon.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyload/plugin/Addon.py b/pyload/plugin/Addon.py index 1f4730851..35f010f29 100644 --- a/pyload/plugin/Addon.py +++ b/pyload/plugin/Addon.py @@ -16,6 +16,7 @@ class Expose(object): def threaded(fn): + def run(*args,**kwargs): addonManager.startThread(fn, *args, **kwargs) @@ -111,6 +112,7 @@ class Addon(Base): if has_method(self.__class__, "unload"): self.unload() + def unload(self): # Deprecated, use method deactivate() instead pass @@ -121,11 +123,14 @@ class Addon(Base): # Event methods - overwrite these if needed + + def activate(self): """ called when addon was activated """ if has_method(self.__class__, "coreReady"): self.coreReady() + def coreReady(self): # Deprecated, use method activate() instead pass @@ -135,6 +140,7 @@ class Addon(Base): if has_method(self.__class__, "coreExiting"): self.coreExiting() + def coreExiting(self): # Deprecated, use method exit() instead pass |