Repository navigation
fix(jellyfin): keep the picked subtitle among identical same-language files - #2880
Merged
Merged
Conversation
… files Jellyfin labels two external subtitle files in the same language identically, so the intent matching that guards a source id found a tie and requested no subtitle at all. The explicit pick now settles the tie, provided its own row passes the same language and forced checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stale index pointing at a row the intent ranks below the tied pair must still decline, as the edde746#1785 guard intends. The test now covers that case, with a smaller fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jucor
marked this pull request as ready for review
October 29, 2026 04:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi !
On Jellyfin, two external subtitles in the same language get identical labels -- for instance one Jellyfin downloaded next to one you already had. Picking either of them from the tracks sheet then plays no subtitle at all:
_validJellyfinSubtitleStreamIdre-derives the pick from its language and title (the #1716 guard), finds two equally good rows, and gives up.This PR lets the explicit pick settle that tie, but only when its own row is one of the tied ones. A stale index pointing at a row that matches worse still gives up, as #1785 intends.
How I checked it
main, playback starts with no subtitle at all; with this PR, with the one picked. A stale pick pointing at the third one still gets none.#2875 needs this, as a downloaded subtitle usually lands next to an identical one.
Disclosure: I piloted Claude Opus 5.5 (Anthropic) at high effort to write the change and run the tests.
Thanks a lot for considering it !