summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExternalScripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r--module/plugins/hooks/ExternalScripts.py5
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)