Page 1 of 1

Multi Languages

Posted: 30 Apr 2017, 21:00
by Rdk206
Hi.

I need an audio command for:

1 language: Language of film
2 language: 'Dual'
3 or more language: 'Multi'

This is posible for Movie format in Filebot?

Thank you so much!

Re: Multi Languages

Posted: 01 May 2017, 03:35
by rednoah
Have you tried the {languages} or {audioLanguages} binding? That'll give you a list of languages, and if you want "Dual" and "Multi" then you can just check the size of that list of languages.

Re: Multi Languages

Posted: 01 May 2017, 08:19
by Rdk206
In other post, I see this:
(audio.size() > 1) ? 'Dual': '[$video_lang]'}

But... When film have 3 audio, I like put Multi, not Dual.

Sorry i'm rookie in filebot, and I speak english little.

Re: Multi Languages

Posted: 01 May 2017, 08:46
by rednoah
e.g.

Code: Select all

audio.size() > 2 ? 'Multi' : audio.size() > 1 ? 'Dual' : audioLanguages[0]

Re: Multi Languages

Posted: 01 May 2017, 09:11
by Rdk206
oh my god!! Perfect!!!!

One last answer...
I put this: {audio.size() > 2 ? 'Multi' : audio.size() > 1 ? 'Dual' : audioLanguages[0]}

When only have 1 audio, filebot put 'spa' (for example), if I like put 'Esp', How do I put the "replace" command?

Thank you!

Re: Multi Languages

Posted: 01 May 2017, 09:39
by rednoah
You can get normal and bibliographic language codes like this:

Code: Select all

audioLanguages[0].ISO3

Code: Select all

audioLanguages[0].ISO3B

Re: Multi Languages

Posted: 01 May 2017, 09:49
by Rdk206
This is I need:

Code: Select all

{audio.size() > 2 ? 'Multi' : audio.size() > 1 ? 'Dual' : audio.language[0].replace('es', 'Esp')}
Thank you for all.