Get number of audio streams
Posted: 24 Apr 2016, 20:27
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
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