Page 1 of 1

Is there a label to identify forced subtitles?

Posted: 09 Jan 2026, 14:40
by piter332
Hi,

Does anyone know if there's a label to identify forced subtitles?

Thanks

Re: Is there a label to identify forced subtitles?

Posted: 09 Jan 2026, 15:56
by rednoah
:idea: {subt} will add the language code and the -forced marker.

:idea: {subt} notably can only detect -forced subtitles that are already marked as such. If you need auto-detection, then you might have to write your own code that reads the subtitle files and checks for certain heuristics.

Re: Is there a label to identify forced subtitles?

Posted: 09 Jan 2026, 20:37
by piter332
Thanks for your help.

Re: Is there a label to identify forced subtitles?

Posted: 10 Jan 2026, 05:03
by rednoah
What is the format you ended up using in the end? Please copy & paste for the next guy.

Re: Is there a label to identify forced subtitles?

Posted: 10 Jan 2026, 08:15
by piter332
Hi

I've done what you told me, but it's not recognizing the forced subtitles.

Format: Select all

{n} {sxe} {t} [{vf} {source} {vcf} {acf} {audioLanguages} Subs{textLanguages}{tags}][{subt}]

Re: Is there a label to identify forced subtitles?

Posted: 10 Jan 2026, 11:07
by rednoah
piter332 wrote: 10 Jan 2026, 08:15 it's not recognizing the forced subtitles
:?: What are the subtitle file names you have?

:?: Can you share the subtitle files or OpenSubtitles links to these subtitles?

Re: Is there a label to identify forced subtitles?

Posted: 10 Jan 2026, 17:43
by piter332
De Mediainfo

Properties: Select all

exto #2
ID                                       : 5
Formato                                  : UTF-8
ID códec                                 : S_TEXT/UTF8
ID códec/Info                            : UTF-8 Plain Text
Duración                                 : 1 h 40 min
Tasa de bits                             : 0 b/s
Velocidad de fotogramas                  : 0,001 FPS
Count of elements                        : 7
Tamaño de pista                          : 141 Bytes (0%)
Idioma                                   : Español
Default                                  : Sí
Forced                                   : Sí

Re: Is there a label to identify forced subtitles?

Posted: 10 Jan 2026, 19:59
by rednoah
:!: I see. You are talking about embedded subtitles and not external subtitles. That changes things.


:?: In this case, please copy & paste the raw MediaInfo table via FileBot so we can see the all the keys. That way we can write code to check if the file contains any subtitles streams that are marked as forced.


:arrow: e.g. check if at least one subtitle stream is marked as Forced and if so add [Forced] to the file path:

Format: Select all

{ text.Forced =~ /Yes/ ? ' [Forced]' : null }