List of available languages in film

Any questions? Need some help?
Post Reply
JustOneOfMany
Posts: 4
Joined: 09 Apr 2019, 10:02

List of available languages in film

Post by JustOneOfMany »

Hi,

Renaming films with script: {y} {n} {actors.take(1)} {vf} {vc}. Worked great for my purposes until now.

If the film contains 2 languages french and english and I would like to have a listing of those 2 languages in the name.

Tried to add to my script {y} {n} {actors.take(1)} {languages} {vf} {vc} but this gives me [Eng] in the name only. I would like [Eng, Fr] in the resulting name ? Or [MULTi] in the resulting name in languages is >1

I am missing something...Please help

Thank you in advanced.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: List of available languages in film

Post by rednoah »

{languages} refers to the languages spoken in the movie, i.e. movie metadata independent and unrelated to the file at hand. {audioLanguages} refers to the audio stream languages.


e.g. audio languages:

Code: Select all

{ audioLanguages }

e.g. audio languages but yield [multi] instead if there are 3+ languages:

Code: Select all

{ audioLanguages.size() > 2 ? '[multi]' : audioLanguages }
:idea: Please read the FAQ and How to Request Help.
Post Reply