From 51fb494496146294fc4471a3a0a5bc10fb6a97a9 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Fri, 15 Nov 2013 06:40:30 +1030 Subject: [PATCH] Quote Params for user script. Fixes #185 Might make this a switchable option if this works. --- TorrentToMedia.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index cb67547c..1124eb4a 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -276,13 +276,13 @@ def external_script(outputDestination): command = [user_script] for param in user_script_param: if param == "FN": - command.append(file) + command.append('"' + file + '"') continue elif param == "FP": - command.append(filePath) + command.append('"' + filePath + '"') continue elif param == "DN": - command.append(dirpath) + command.append('"' + dirpath + '"') continue else: command.append(param)