Is there a label to identify forced subtitles?

All about user-defined episode / movie / file name format expressions
Post Reply
piter332
Posts: 11
Joined: 13 Nov 2024, 07:27

Is there a label to identify forced subtitles?

Post by piter332 »

Hi,

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

Thanks
User avatar
rednoah
The Source
Posts: 24358
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Is there a label to identify forced subtitles?

Post 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.
:idea: Please read the FAQ and How to Request Help.
piter332
Posts: 11
Joined: 13 Nov 2024, 07:27

Re: Is there a label to identify forced subtitles?

Post by piter332 »

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

Re: Is there a label to identify forced subtitles?

Post by rednoah »

What is the format you ended up using in the end? Please copy & paste for the next guy.
:idea: Please read the FAQ and How to Request Help.
piter332
Posts: 11
Joined: 13 Nov 2024, 07:27

Re: Is there a label to identify forced subtitles?

Post 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}]
User avatar
rednoah
The Source
Posts: 24358
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Is there a label to identify forced subtitles?

Post 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?
:idea: Please read the FAQ and How to Request Help.
piter332
Posts: 11
Joined: 13 Nov 2024, 07:27

Re: Is there a label to identify forced subtitles?

Post 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í
User avatar
rednoah
The Source
Posts: 24358
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Is there a label to identify forced subtitles?

Post 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 }
:idea: Please read the FAQ and How to Request Help.
Post Reply