From e03876e9620705d2097ec36f1dfabe01d3ffcf76 Mon Sep 17 00:00:00 2001 From: GammaC0de Date: Fri, 1 Jan 2016 00:21:27 +0200 Subject: [ExternalScripts] Update --- module/plugins/hooks/ExternalScripts.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index efaf7da4a..fa6c9f947 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -10,7 +10,7 @@ from module.plugins.internal.misc import encode class ExternalScripts(Addon): __name__ = "ExternalScripts" __type__ = "hook" - __version__ = "0.64" + __version__ = "0.65" __status__ = "testing" __config__ = [("activated", "bool", "Activated" , True ), @@ -88,7 +88,11 @@ class ExternalScripts(Addon): if not scripts: continue - new_scripts = [s for s in scripts if s not in self.scripts[folder]] + new_scripts = [s for s in scripts if folder not in self.scripts or + folder in self.scripts and s not in self.scripts[folder]] + + if not new_scripts: + continue script_names = map(os.path.basename, new_scripts) self.log_info(_("Activated scripts in folder `%s`: %s") -- cgit v1.2.3