diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-07 11:16:06 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-07 11:16:06 +0200 |
commit | 4344fb664864b157ac397ea210a7b34eaf3b275f (patch) | |
tree | e86a558f7cc6a15273b3aa3a0f5d474968316f28 /module/plugins/hooks/ExternalScripts.py | |
parent | additional log message (diff) | |
download | pyload-4344fb664864b157ac397ea210a7b34eaf3b275f.tar.xz |
basic event manager
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index bbf5acde3..daffc1827 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -40,7 +40,6 @@ class ExternalScripts(Hook): folders = ['download_preparing', 'download_finished', 'package_finished', 'before_reconnect', 'after_reconnect', 'unrar_finished'] - for folder in folders: self.scripts[folder] = [] @@ -52,6 +51,7 @@ class ExternalScripts(Hook): if names: self.logInfo(_("Installed scripts for %s : %s") % (script_type, ", ".join([basename(x) for x in names]))) + def initPluginType(self, folder, path): if not exists(path): try: @@ -91,8 +91,7 @@ class ExternalScripts(Hook): def packageFinished(self, pypack): for script in self.scripts['package_finished']: folder = self.core.config['general']['download_folder'] - if self.core.config.get("general", "folder_per_package"): - folder = save_join(folder. pypack.folder) + folder = save_join(folder. pypack.folder) self.callScript(script, pypack.name, folder, pypack.id) |