From f8a0160356cedcbfbfe3006523d0a85b3e63242e Mon Sep 17 00:00:00 2001 From: Moe Date: Sat, 6 Jun 2020 13:13:04 -0700 Subject: [PATCH] fix Probe JSON output --- libs/webServerPaths.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/webServerPaths.js b/libs/webServerPaths.js index 71b98363..af6aaa68 100644 --- a/libs/webServerPaths.js +++ b/libs/webServerPaths.js @@ -1940,8 +1940,9 @@ module.exports = function(s,config,lang,app,io){ req.query.flags = '' } } - req.probeCommand = s.splitForFFPMEG(req.query.flags+' -i '+req.query.url).join(' ') - exec('ffprobe '+req.probeCommand+' | echo ',function(err,stdout,stderr){ + req.probeCommand = s.splitForFFPMEG(req.query.flags + ` -i "${req.query.url}"`).join(' ') + exec('ffprobe ' + req.probeCommand,function(err,stdout,stderr){ + console.log(stderr,stdout) delete(user.ffprobe) if(err){ req.ret.error=(err)