Get number of audio streams

Any questions? Need some help?
Post Reply
Lukeid
Power User
Posts: 11
Joined: 12 Nov 2013, 11:30

Get number of audio streams

Post by Lukeid »

Hello,

I want to include the language of a video or "DUAL" if it has two. I can get the language outside filebot so I was ussing Filebot to decide if the video has one or more languages.

I used something like:
{(audios.size() > 1) ? '[DUAL]' : '[$video_lang]'}

Where $video_lang is a variable that I set in my own script.

That was working fine for r3316 but now I have updated to r3894 is not working anymore, now nothing appear nor [DUAL] or [EN] or [].

So I guess that now audios.size() is not supported or something like that.

MediaInfo has not changed and seems to work properly for other data, for example:
Before (r3316):
MyTvShow 1x01 - Pilot [AVC-AC3][720p][EN].avi
Now (r3894):
MyTvShow 1x01 - Pilot [AVC-AC3][720p].avi

Is audios.size() not working anymore? Is there any way to get number of audios now?

Thank you very much.

Best regards,
Lukeid
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get number of audio streams

Post by rednoah »

That changed. audios is now audio and audio is now audio[0].
:idea: Please read the FAQ and How to Request Help.
Lukeid
Power User
Posts: 11
Joined: 12 Nov 2013, 11:30

Re: Get number of audio streams

Post by Lukeid »

Great, it works. :D

Is there any changelog or wiki where I can track those type of changes?

Thank you very much.
Lukeid
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get number of audio streams

Post by rednoah »

The Bindings Dialog is part of the app itself and thus always up to date.

Alternatively you can keep up with commit logs, but few changes have to do with the format.
:idea: Please read the FAQ and How to Request Help.
Post Reply