Determine if a movie is dubbed or in original language?
Posted: 30 Dec 2020, 15:05
I'm trying to compare info.OriginalLanguage and audio.language for a match (or a mismatch), goal being a snippet that knows if a movie has orignal language audio track or not.
My current setup :
My Issue : I don't know how to deal with multiple audio languages. Ideally Filebot would search all audio tracks for a match with Original Language, and display that language. Else, display DUBBED. I don't know if it's possible to do.
My current setup :
Code: Select all
{ any
{! (info.OriginalLanguage ==~ /en/) && audio[0].language != /en/ ? audioLanguages[0].name.upper() : ''} // Non English speaking movie AND no English audio, display Audio Language
{info.OriginalLanguage ==~ /en/ && ! ('en' in audio.language) ? 'DUBBED' :''} // English speaking movie AND no English audio, display 'DUBBED'
{audio.size() > 1 ? 'MULTI' : ''} // Support for multiple audio languages
}