The objective is to have "English" or "Eng, Ita" in case of single language or multi-language movies.
Which of the following is the preferred way to do things:
Code: Select all
{ audioLanguages.size() > 1 ? audioLanguages.join(", ").upperInitial() :
{ any {import net.filebot.Language; Language.findLanguage(audio.language[0]).name}
{audio.LanguageString[0]}
{audioLanguages[0].name}
{languages[0].name} // can also use .first() to replace [0]
}
}
Also, how would I modify this in case I wanted to get ISO3 or 2/B codes also for the single-language movie?
Thank you
Command used (for reference) is:
Code: Select all
filebot -script fn:amc [other options] --def movieFormat=@/path/to/scripts/movie.groovy