Skip to content

misc/language: parse forced tag from external subtitle tracks - #16061

Merged
kasper93 merged 2 commits into
mpv-player:masterfrom
tgt:forced-external-subs
Mar 31, 2025
Merged

misc/language: parse forced tag from external subtitle tracks#16061
kasper93 merged 2 commits into
mpv-player:masterfrom
tgt:forced-external-subs

Conversation

@tgt

@tgt tgt commented Mar 16, 2025

Copy link
Copy Markdown

This also adds a forced argument to the sub-add command.

Fixes: #16060.

This is very similar to #16020.

It does not add support for <title>.forced.<lang>.<ext> as suggested in my issue and just adds support for <title>.<lang>.forced.<ext> as this is in line with the change in the sdh pull request.

I don't think it makes sense for a subtitle track to be marked as both sdh and forced, so I didn't update the filename parser to support both tags at once.

Comment thread misc/language.c Outdated
Comment thread misc/language.c Outdated
Comment thread test/language.c Outdated
Comment thread player/external_files.h Outdated
@kasper93 kasper93 added this to the Release v0.41.0 milestone Mar 16, 2025
@tgt
tgt force-pushed the forced-external-subs branch from 6dcf014 to 853476f Compare March 18, 2025 12:11
@github-actions

github-actions Bot commented Mar 19, 2025

Copy link
Copy Markdown

Download the artifacts for this pull request:

Windows
macOS

Comment thread test/language.c
@tgt
tgt force-pushed the forced-external-subs branch from 853476f to 2389df8 Compare March 30, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recognise .forced in subtitle filenames

2 participants