summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-03-06 22:17:47 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-03-06 22:17:47 +0100
commitddc20d62756a05609de20528b31edaeeac79b0a7 (patch)
treedd640e913be62f0efaaf14ed14deefde95bab5dd
parent[MediafireCom] Update (diff)
parent[ExternalScripts] Encode unicode characters (diff)
downloadpyload-ddc20d62756a05609de20528b31edaeeac79b0a7.tar.xz
Merge pull request #1227 from jellysheep/stable
[ExternalScripts] Encode unicode characters
-rw-r--r--module/plugins/hooks/ExternalScripts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index f49220c2a..76a9d9c52 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -74,7 +74,8 @@ class ExternalScripts(Hook):
def callScript(self, script, *args):
try:
- cmd = [script] + [str(x) if not isinstance(x, basestring) else x for x in args]
+ cmd = [script] + [x.encode("UTF-8") if isinstance(x, unicode) else
+ str(x) if not isinstance(x, basestring) else x for x in args]
self.logDebug("Executing", os.path.abspath(script), " ".join(cmd))