Get audio language from a movie/series

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
just.RooT
Posts: 3
Joined: 19 Apr 2014, 15:30

Get audio language from a movie/series

Post by just.RooT »

Hello,

is there a way to find out the audio language?
Im looking for something like this:

Code: Select all

[...]
{lang =~ /eng/ ? '[ENG] ' : ''}
[...]
as sollution: The Vampire Diaries S05E17 - Rescue Me [ENG].mkv

But the {lang} tag is only for subtitles, isnt it?

Thanks for help.
just.RooT
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get audio language from a movie/series

Post by rednoah »

Yep, {lang} is only for subtitles, but you can use {audio.*} for audio stream bindings. There's lots of examples here in the forums, and you can see all the possible values and play with in with the Format Editor. Click the (x)= button to see all bindings and values for your test case.
:idea: Please read the FAQ and How to Request Help.
just.RooT
Posts: 3
Joined: 19 Apr 2014, 15:30

Re: Get audio language from a movie/series

Post by just.RooT »

Could you give me an example or a link, please?

Thanks!

Update:
It works with {audio.language}.
Thank you.
Post Reply