@ -53,6 +53,10 @@ function plugin(file, librarySettings, inputs) {
}else{
response.container='.'+inputs.container
}
if(inputs.container=="mkv"){
extraArguments="-map -0:d "
}
if(file.fileMedium!=="video"){
response.processFile=false
@ -73,6 +77,7 @@ function plugin(file, librarySettings, inputs) {
varminimumBitrate=~~(targetBitrate*0.7)
varmaximumBitrate=~~(targetBitrate*1.3)
if(targetBitrate=="0"){
response.processFile=false
response.infoLog+="☒Target bitrate could not be calculated. Skipping this plugin. \n"
@ -87,7 +92,7 @@ function plugin(file, librarySettings, inputs) {
returnresponse
}else{
response.processFile=true
response.preset+=`, -c copy`
response.preset+=`, -c copy${extraArguments}`
response.infoLog+=`☒Current bitrate is below configured bitrate cutoff of ${inputs.bitrate_cutoff} but is not in correct container. Remuxing to ${inputs.container} but not transcoding. \n`
returnresponse
}
@ -102,7 +107,7 @@ function plugin(file, librarySettings, inputs) {
@ -53,6 +53,10 @@ function plugin(file, librarySettings, inputs) {
}else{
response.container='.'+inputs.container
}
if(inputs.container=="mkv"){
extraArguments="-map -0:d "
}
if(file.fileMedium!=="video"){
response.processFile=false
@ -87,7 +91,7 @@ function plugin(file, librarySettings, inputs) {
returnresponse
}else{
response.processFile=true
response.preset+=`, -c copy`
response.preset+=`, -c copy${extraArguments}`
response.infoLog+=`☒Current bitrate is below configured bitrate cutoff of ${inputs.bitrate_cutoff} but is not in correct container. Remuxing to ${inputs.container} but not transcoding. \n`
returnresponse
}
@ -102,7 +106,7 @@ function plugin(file, librarySettings, inputs) {
Description:`This plugin removes title metadata from video/audio/subtitles, if it exists. \n\n`,
Version:"1.10",
Description:`This plugin removes title metadata from video/audio/subtitles, if it exists. Video checking is mandatory, audio and subtitles are optional.\n\n`,