diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-31 23:21:27 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-31 23:21:27 +0100 |
commit | e03876e9620705d2097ec36f1dfabe01d3ffcf76 (patch) | |
tree | 5bcae64aef3aab4f2c1d0091e1f426cc751a7355 /module/plugins/hooks/ExternalScripts.py | |
parent | [Misc] Update (diff) | |
download | pyload-e03876e9620705d2097ec36f1dfabe01d3ffcf76.tar.xz |
[ExternalScripts] Update
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 8 |
1 files changed, 6 insertions, 2 deletions
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") |