Migz Plugins

1. Update various plugins to correctly compare against numbers.
This commit is contained in:
Migz93 2020-12-15 11:13:47 +00:00
parent 864cf41f1d
commit b13ae8cc29
5 changed files with 23 additions and 23 deletions

View file

@ -190,17 +190,17 @@ function plugin(file, librarySettings, inputs) {
&& inputs.tag_title.toLowerCase() === 'true'
&& file.ffProbeData.streams[i].codec_type.toLowerCase() === 'audio'
) {
if (file.ffProbeData.streams[i].channels === '8') {
if (file.ffProbeData.streams[i].channels === 8) {
ffmpegCommandInsert += `-metadata:s:a:${audioIdx} title="7.1" `;
response.infoLog += `☒Audio stream detected as 8 channel with no title, tagging. Stream 0:a:${audioIdx} \n`;
convert = true;
}
if (file.ffProbeData.streams[i].channels === '6') {
if (file.ffProbeData.streams[i].channels === 6) {
ffmpegCommandInsert += `-metadata:s:a:${audioIdx} title="5.1" `;
response.infoLog += `☒Audio stream detected as 6 channel with no title, tagging. Stream 0:a:${audioIdx} \n`;
convert = true;
}
if (file.ffProbeData.streams[i].channels === '2') {
if (file.ffProbeData.streams[i].channels === 2) {
ffmpegCommandInsert += `-metadata:s:a:${audioIdx} title="2.0" `;
response.infoLog += `☒Audio stream detected as 2 channel with no title, tagging. Stream 0:a:${audioIdx} \n`;
convert = true;