mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 03:06:27 -07:00
Migz Plugins
1. Update various plugins to correctly compare against numbers.
This commit is contained in:
parent
864cf41f1d
commit
b13ae8cc29
5 changed files with 23 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue