From a7bde29401d7dd38b81d5a17b298013fb9b9258b Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 15 Oct 2025 22:39:44 +0000 Subject: [PATCH] fix: only exclude forced subs when --forced-subs flag is not set Previously, forced subtitles were incorrectly included when they matched languages in the lang configuration, even without the --forced-subs flag. This caused forced subs to appear when using language configs or the -l parameter, which violated the expected behavior. --- unshackle/commands/dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unshackle/commands/dl.py b/unshackle/commands/dl.py index 4e4ad8d..d99c58f 100644 --- a/unshackle/commands/dl.py +++ b/unshackle/commands/dl.py @@ -820,7 +820,7 @@ class dl: sys.exit(1) if not forced_subs: - title.tracks.select_subtitles(lambda x: not x.forced or is_close_match(x.language, lang)) + title.tracks.select_subtitles(lambda x: not x.forced) # filter audio tracks # might have no audio tracks if part of the video, e.g. transport stream hls