Tag multiple audio
Posted: 19 Jun 2019, 14:39
Hi, I'm trying to get filebot to add [Dual Audio] to files containing audio streams in different languages.
Right now what I'm doing is just checking if audio[1].language is not null, but that will tag all files that have two or more audio streams even if they're all the same language.
What I'm thinking of replacing it with is either to compare first and second language and if they don't match and 2nd stream is not null, then tag as dual.
Or, if you can test for the amount of objects returned from audio.languages or audioLanguages and tag if it returns more than one.
Anyone that could help me with some syntax for one of these would be appreciated!?
Thanks!
Right now what I'm doing is just checking if audio[1].language is not null, but that will tag all files that have two or more audio streams even if they're all the same language.
What I'm thinking of replacing it with is either to compare first and second language and if they don't match and 2nd stream is not null, then tag as dual.
Or, if you can test for the amount of objects returned from audio.languages or audioLanguages and tag if it returns more than one.
Anyone that could help me with some syntax for one of these would be appreciated!?
Thanks!