fix Probe JSON output

merge-requests/210/head
Moe 2020-06-06 13:13:04 -07:00
parent 615f66bb1b
commit f8a0160356
1 changed files with 3 additions and 2 deletions

View File

@ -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)