mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #16033] [10.11] Fix querying media with language filters #14501
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/16033
Author: @MBR-0001
Created: 1/15/2026
Status: 🔄 Open
Base:
release-10.11.z← Head:release-10.11.z📝 Commits (1)
e87fe6cFix querying media with language filters📊 Changes
1 file changed (+34 additions, -9 deletions)
View changed files
📝
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs(+34 -9)📄 Description
After looking into subtitle handing in jellyfin I've realized the situation is not great, some tables hold the language in one format, code queries it in another and all sorts of issues come up.
Changes
For all queries that include languages: localizationManager is used to get all (both?) language name variants for the wanted language.
Example: query is for german (deu) so via localizationManager we get both deu and ger, and then check for both of those in the query. (From my understanding of EF
Language = 'deu'->Language IN ('deu', 'ger').Any input is welcome, I hope this fixes the listed issues and doesn't break anything :)
Issues
Maybe (hopefully)
fixes #9606
fixes #15513
fixes #12434
fixes https://github.com/jellyfin/jellyfin-plugin-opensubtitles/issues/185
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.