From a5079c520c64908d41ac79005ffc69f8ab2cf2e2 Mon Sep 17 00:00:00 2001 From: WangWei Date: Thu, 15 Aug 2019 11:31:28 +0800 Subject: [PATCH 1/2] add quotes for output --- lib/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/video.js b/lib/video.js index 903efdb..a184706 100644 --- a/lib/video.js +++ b/lib/video.js @@ -59,7 +59,7 @@ module.exports = function (filePath, settings, infoConfiguration, infoFile) { * Set the output path */ var setOutput = function (path) { - output = path; + output = utils.addQuotes(path); } /*********************/ From a32862d8d540b237303af938f16e40a84e14d3c1 Mon Sep 17 00:00:00 2001 From: WangWei Date: Thu, 15 Aug 2019 14:18:52 +0800 Subject: [PATCH 2/2] quote is already added --- lib/video.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/video.js b/lib/video.js index a184706..2d1436c 100644 --- a/lib/video.js +++ b/lib/video.js @@ -551,10 +551,6 @@ module.exports = function (filePath, settings, infoConfiguration, infoFile) { var onlyDestinationFile = folder != undefined ? false : true; // Building the value for return value. Check if the callback is not a function. In this case will created a new instance of the deferred class var deferred = typeof callback != 'function' ? when.defer() : { promise : null }; - // Deal with input paths that have spaces in them, by quoting them - for (i=0; i