From 81508f295cffc40c479fe72f24bdf1dbbedf5d92 Mon Sep 17 00:00:00 2001 From: mkaay Date: Wed, 5 May 2010 23:03:43 +0200 Subject: refactored plugins, new plugin manager --- module/plugins/hooks/ExternalScripts.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'module/plugins/hooks/ExternalScripts.py') diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index 50f6149a2..9e0f3855c 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -24,16 +24,14 @@ from os import listdir, sep from os.path import join class ExternalScripts(Hook): + __name__ = "ExternalScripts" + __version__ = "0.1" + __description__ = """run external scripts""" + __author_name__ = ("mkaay", "RaNaN", "spoob") + __author_mail__ = ("mkaay@mkaay.de", "ranan@pyload.org", "spoob@pyload.org") + def __init__(self, core): Hook.__init__(self, core) - props = {} - props['name'] = "ExternalScripts" - props['version'] = "0.1" - props['description'] = """run external scripts""" - props['author_name'] = ("mkaay", "RaNaN", "spoob") - props['author_mail'] = ("mkaay@mkaay.de", "ranan@pyload.org", "spoob@pyload.org") - self.props = props - self.core = core self.scripts = {} script_folders = [join(core.path, 'scripts','download_preparing'), -- cgit v1.2.3