diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-03-06 22:31:52 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-03-06 22:31:52 +0100 |
commit | acc20db31c63ed03ce3e0c530a0b0bc24444e980 (patch) | |
tree | b320e802bcb62557f676b6a7a46cc69ba1bb1755 /module/plugins/hooks/ExternalScripts.py | |
parent | Merge pull request #1227 from jellysheep/stable (diff) | |
download | pyload-acc20db31c63ed03ce3e0c530a0b0bc24444e980.tar.xz |
[ExternalScripts] Version up
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 76a9d9c52..a09d5e92e 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -10,7 +10,7 @@ from module.utils import save_join class ExternalScripts(Hook): __name__ = "ExternalScripts" __type__ = "hook" - __version__ = "0.29" + __version__ = "0.30" __config__ = [("activated", "bool", "Activated" , True ), ("wait" , "bool", "Wait script ending", False)] @@ -74,8 +74,7 @@ class ExternalScripts(Hook): def callScript(self, script, *args): try: - cmd = [script] + [x.encode("UTF-8") if isinstance(x, unicode) else - str(x) if not isinstance(x, basestring) else x for x in args] + cmd = [script] + [(str(x) if not isinstance(x, basestring) else x).encode('utf-8') for x in args] self.logDebug("Executing", os.path.abspath(script), " ".join(cmd)) |