tooltip:`Specify language tag/s here for the audio tracks you'd like to keep, recommended to keep "und" as this stands for undertermined, some files may not have the language specified. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
tooltip:`Specify language tag/s here for the audio tracks you'd like to keep, recommended to keep "und" as this stands for undertermined, some files may not have the language specified. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
\\nExample:\\n
\\nExample:\\n
eng
eng
\\nExample:\\n
\\nExample:\\n
eng,und
eng,und
\\nExample:\\n
\\nExample:\\n
eng,und,jap`
eng,und,jap`
},
},
@ -27,7 +27,7 @@ function details() {
tooltip:`Specify if audio tracks that contain commentary/description should be removed.
tooltip:`Specify if audio tracks that contain commentary/description should be removed.
\\nExample:\\n
\\nExample:\\n
true
true
\\nExample:\\n
\\nExample:\\n
false`
false`
},
},
@ -36,7 +36,7 @@ function details() {
tooltip:`Specify a single language for audio tracks with no language or unknown language to be tagged with, leave empty to disable, you must have "und" in your list of languages to keep for this to function. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
tooltip:`Specify a single language for audio tracks with no language or unknown language to be tagged with, leave empty to disable, you must have "und" in your list of languages to keep for this to function. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
\\nExample:\\n
\\nExample:\\n
eng
eng
\\nExample:\\n
\\nExample:\\n
por
por
`
`
@ -46,7 +46,7 @@ function details() {
tooltip:`Specify audio tracks with no title to be tagged with the number of channels they contain. Do NOT use this with mp4, as mp4 does not support title tags.
tooltip:`Specify audio tracks with no title to be tagged with the number of channels they contain. Do NOT use this with mp4, as mp4 does not support title tags.
\\nExample:\\n
\\nExample:\\n
true
true
\\nExample:\\n
\\nExample:\\n
false`
false`
},
},
@ -70,14 +70,14 @@ function plugin(file, librarySettings, inputs) {
response.infoLog+="☒File is not video \n"
response.infoLog+="☒File is not video \n"
response.processFile=false;
response.processFile=false;
returnresponse
returnresponse
}
}
if(inputs.language==""){
if(inputs.language==""){
response.infoLog+="☒Language/s keep have not been configured within plugin settings, please configure required options. Skipping this plugin. \n"
response.infoLog+="☒Language/s keep have not been configured within plugin settings, please configure required options. Skipping this plugin. \n"
response.processFile=false;
response.processFile=false;
returnresponse
returnresponse
}
}
varlanguage=inputs.language.split(",")
varlanguage=inputs.language.split(",")
varffmpegCommandInsert=''
varffmpegCommandInsert=''
varconvert=false
varconvert=false
@ -106,7 +106,7 @@ function plugin(file, librarySettings, inputs) {
response.infoLog+=`☒Audio stream detected as being Commentary or Description, removing. Audio stream 0:a:${audioIdx} - ${file.ffProbeData.streams[i].tags.title}. \n`
response.infoLog+=`☒Audio stream detected as being Commentary or Description, removing. Audio stream 0:a:${audioIdx} - ${file.ffProbeData.streams[i].tags.title}. \n`
convert=true
convert=true
@ -120,7 +120,7 @@ function plugin(file, librarySettings, inputs) {
response.infoLog+=`☒Audio stream detected as having unknown language tagged, tagging as ${inputs.tag_language}. \n`
response.infoLog+=`☒Audio stream detected as having unknown language tagged, tagging as ${inputs.tag_language}. \n`
tooltip:`Specify language tag/s here for the subtitle tracks you'd like to keep. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
tooltip:`Specify language tag/s here for the subtitle tracks you'd like to keep. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
\\nExample:\\n
\\nExample:\\n
eng
eng
\\nExample:\\n
\\nExample:\\n
eng,jap`
eng,jap`
},
},
@ -24,7 +24,7 @@ function details() {
tooltip:`Specify if subtitle tracks that contain commentary/description should be removed.
tooltip:`Specify if subtitle tracks that contain commentary/description should be removed.
\\nExample:\\n
\\nExample:\\n
true
true
\\nExample:\\n
\\nExample:\\n
false`
false`
},
},
@ -33,7 +33,7 @@ function details() {
tooltip:`Specify a single language for subtitle tracks with no language or unknown language to be tagged with, leave empty to disable. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
tooltip:`Specify a single language for subtitle tracks with no language or unknown language to be tagged with, leave empty to disable. Must follow ISO-639-2 3 letter format. https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
\\nExample:\\n
\\nExample:\\n
eng
eng
\\nExample:\\n
\\nExample:\\n
por`
por`
},
},
@ -58,13 +58,13 @@ function plugin(file, librarySettings, inputs) {
response.processFile=false;
response.processFile=false;
returnresponse
returnresponse
}
}
if(inputs.language==""){
if(inputs.language==""){
response.infoLog+="☒Language/s keep have not been configured within plugin settings, please configure required options. Skipping this plugin. \n"
response.infoLog+="☒Language/s keep have not been configured within plugin settings, please configure required options. Skipping this plugin. \n"
response.processFile=false;
response.processFile=false;
returnresponse
returnresponse
}
}
varlanguage=inputs.language.split(",")
varlanguage=inputs.language.split(",")
varffmpegCommandInsert=''
varffmpegCommandInsert=''
varsubtitleIdx=-1
varsubtitleIdx=-1
@ -84,7 +84,7 @@ function plugin(file, librarySettings, inputs) {
tooltip:`Specify if any 2.0 audio tracks should be converted to aac for maximum compatability with devices.
tooltip:`Specify if any 2.0 audio tracks should be converted to aac for maximum compatability with devices.
\\nExample:\\n
\\nExample:\\n
true
true
\\nExample:\\n
\\nExample:\\n
false`
false`
},
},
@ -24,7 +24,7 @@ function details() {
tooltip:`Specify if downmixing should be used to create extra audio tracks. I.e if you have an 8ch but no 2ch or 6ch, create the missing audio tracks from the 8 ch. Likewise if you only have 6ch, create the missing 2ch from it.
tooltip:`Specify if downmixing should be used to create extra audio tracks. I.e if you have an 8ch but no 2ch or 6ch, create the missing audio tracks from the 8 ch. Likewise if you only have 6ch, create the missing 2ch from it.
\\nExample:\\n
\\nExample:\\n
true
true
\\nExample:\\n
\\nExample:\\n
false`
false`
},
},
@ -48,8 +48,8 @@ function plugin(file, librarySettings, inputs) {
response.infoLog+="☒File is not video. \n"
response.infoLog+="☒File is not video. \n"
response.processFile=false;
response.processFile=false;
returnresponse
returnresponse
}
}
if(inputs.aac_stereo==""&&inputs.downmix==""){
if(inputs.aac_stereo==""&&inputs.downmix==""){
response.infoLog+="☒Neither aac_stereo or downmix options have been configured within plugin settings, please configure required options. Skipping this plugin. \n"
response.infoLog+="☒Neither aac_stereo or downmix options have been configured within plugin settings, please configure required options. Skipping this plugin. \n"
response.processFile=false
response.processFile=false
@ -68,22 +68,22 @@ function plugin(file, librarySettings, inputs) {