mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -07:00
use ffprobedata (#307)
This commit is contained in:
parent
a1c711fb9b
commit
94710291c8
1 changed files with 7 additions and 2 deletions
|
|
@ -96,8 +96,13 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
logOutFile = currentfilename.substr(0, currentfilename.lastIndexOf(".")) + ".out"
|
logOutFile = currentfilename.substr(0, currentfilename.lastIndexOf(".")) + ".out"
|
||||||
console.log("Log out file: " + logOutFile)
|
console.log("Log out file: " + logOutFile)
|
||||||
|
|
||||||
//get an updated version of the file for checking metadata
|
let probeData;
|
||||||
var probeData = JSON.parse(require("child_process").execSync(`ffprobe -v quiet -print_format json -show_format -show_streams "${currentfilename}"`).toString())
|
if (file && file.ffProbeData && file.ffProbeData.format) {
|
||||||
|
probeData = file.ffProbeData;
|
||||||
|
} else {
|
||||||
|
//get an updated version of the file for checking metadata
|
||||||
|
probeData = JSON.parse(require("child_process").execSync(`ffprobe -v quiet -print_format json -show_format -show_streams "${currentfilename}"`).toString())
|
||||||
|
}
|
||||||
|
|
||||||
//setup required varibles
|
//setup required varibles
|
||||||
var loudNorm_i = -23.0
|
var loudNorm_i = -23.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue