Now, I want to know, at a glance, which languages (and their codec) are present in each mkv. For the sake of keeping the filename as short as possible, I'm trying to get it to list them as follows:
Code: Select all
<movie name, year, resolution, source etc>.DTS.en.fr.nl.<video codec>
Code: Select all
{ac.match(/DTS/)}{'.'+audios.language[0]}{'.'+audios.language[1].replaceAll("null", "")}{'.'+audios.language[2].replaceAll("null", "")}
What I *really* would love, if there are languages in more than one codec is for it to output something like:
Code: Select all
<movie name, year, resolution, source etc>.DTS.en.AC3.fr.nl.<video codec>
Code: Select all
{ac.match(/DTS/){'.'+audios.language[0]}{'.'+audios.language[1].replaceAll("null", "")}{'.'+audios.language[2].replaceAll("null", "")}}{ac.match(/AC3/){'.'+audios.language[0]}{'.'+audios.language[1].replaceAll("null", "")}{'.'+audios.language[2].replaceAll("null", "")}}

The only languages I really care about are en, fr and nl but some movies have foreign audio only (Sin Nombre, Seven Samurai, etc etc) so I will just include all 2-letter track names that I find.
Now, is this beyond the scope of what Filebot/groovy can do? Any help would be much appreciated.
