diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-19 09:42:34 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-19 09:42:34 +0200 |
commit | 502517f37c7540b0bddb092e69386d9d6f08800c (patch) | |
tree | a90f2143063538f466b0283383a97067f7ea829d /module/plugins/hooks/ExternalScripts.py | |
parent | Improve fixurl method (diff) | |
download | pyload-502517f37c7540b0bddb092e69386d9d6f08800c.tar.xz |
Fix addons
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index 6bf3cf347..2a96d9e59 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -3,11 +3,11 @@ import os import subprocess -from module.plugins.internal.Hook import Hook +from module.plugins.internal.Addon import Addon from module.utils import fs_encode, save_join as fs_join -class ExternalScripts(Hook): +class ExternalScripts(Addon): __name__ = "ExternalScripts" __type__ = "hook" __version__ = "0.43" @@ -23,11 +23,8 @@ class ExternalScripts(Hook): ("Walter Purcaro", "vuolter@gmail.com")] - interval = 0 #@TODO: Remove in 0.4.10 - - - def setup(self): - self.info = {'oldip': None} + def init(self): + self.info['oldip'] = None self.scripts = {} self.event_list = ["archive_extract_failed", "archive_extracted" , |