Only output subtitle based on a metric
Posted: 01 Nov 2023, 15:39
You helped me before on this.
This is part of a GUI preset
Which produces this.
Two questions if I may.
1. Is it possible to change the comma to a period? So it looks like this?
and then
2. Is it possible to only include the subtitle to the extreme right? Or put another way, based on a metric of sorts. If A exists then output A, if A & B exist output only B, if A & B & C exist output only C.
So if there are only normal subtitles it will look like this.
But if only normal and Hearing Impaired subs are available it will look like this
And lastly if normal, hearing impaired AND hearing impaired with colours are available, it will look like this.
mediainfo https://pastebin.com/2u2XDCPE
5 minute video extract and GUI preset
https://mega.nz/folder/6QBEyDLQ#Hgg6WhekGBu1-pAhZq_6Rg
Just trying to make the filename a bit shorter.
This is part of a GUI preset
Code: Select all
{if (textLanguages)".${text.collect{ it.Title ? "${it.'Language/String3'} ($it.Title)" : it.'Language/String3' } }"}
Code: Select all
[eng, eng (HI), eng (HI-C)]
1. Is it possible to change the comma to a period? So it looks like this?
Code: Select all
[eng. eng (HI). eng (HI-C)]
2. Is it possible to only include the subtitle to the extreme right? Or put another way, based on a metric of sorts. If A exists then output A, if A & B exist output only B, if A & B & C exist output only C.
So if there are only normal subtitles it will look like this.
Code: Select all
[eng]
Code: Select all
[eng (HI)]
Code: Select all
[eng (HI-C)]
5 minute video extract and GUI preset
https://mega.nz/folder/6QBEyDLQ#Hgg6WhekGBu1-pAhZq_6Rg
Just trying to make the filename a bit shorter.