[PR #16001] feat: add support for setting a preffered image language priority in library options #14494

Open
opened 2026-02-07 07:30:43 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/16001
Author: @MarcoCoreDuo
Created: 1/12/2026
Status: 🔄 Open

Base: masterHead: preferred-image-languages


📝 Commits (5)

  • c939860 Add support for setting a preffered image language priority
  • d76b767 add myself to CONTRIBUTORS.md
  • 9bfa1d7 Refactor language parameters in OrderByLanguageDescending methods
  • a20be0a revert formating
  • f813554 don't include all languages when prefferedImageLanguages are set

📊 Changes

6 files changed (+107 additions, -24 deletions)

View changed files

📝 CONTRIBUTORS.md (+1 -0)
📝 MediaBrowser.Controller/Entities/BaseItem.cs (+10 -0)
📝 MediaBrowser.Model/Configuration/LibraryOptions.cs (+8 -0)
📝 MediaBrowser.Model/Extensions/EnumerableExtensions.cs (+55 -9)
📝 MediaBrowser.Providers/Manager/ItemImageProvider.cs (+7 -2)
📝 MediaBrowser.Providers/Manager/ProviderManager.cs (+26 -13)

📄 Description

Changes
Implements a new field PreferredImageLanguages in libraryOptions that accepts an array of language codes and nolang for no language. If the array has values, it will sort images based on this order. It will only fall back to no-language images and not to other languages, to avoid adding images in non-preferred languages. When no preferred image languages are set, it will fall back to the old behavior.

The PR for jellyfin-web: https://github.com/jellyfin/jellyfin-web/pull/7492

Features implemented
https://features.jellyfin.org/posts/2173/image-fetcher-preferred-language
https://features.jellyfin.org/posts/2734/fallback-language-for-posters
https://features.jellyfin.org/posts/3192/logos-should-select-the-correct-language

Closes https://github.com/jellyfin/jellyfin/pull/14078


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/16001 **Author:** [@MarcoCoreDuo](https://github.com/MarcoCoreDuo) **Created:** 1/12/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `preferred-image-languages` --- ### 📝 Commits (5) - [`c939860`](https://github.com/jellyfin/jellyfin/commit/c9398601618a8d13f54118b3d786ab9f5d2e31ae) Add support for setting a preffered image language priority - [`d76b767`](https://github.com/jellyfin/jellyfin/commit/d76b767bdacaf5d26523088f8b776b6a110f1cae) add myself to CONTRIBUTORS.md - [`9bfa1d7`](https://github.com/jellyfin/jellyfin/commit/9bfa1d71f39e016c1a6d448ee45ae24a07a07c32) Refactor language parameters in OrderByLanguageDescending methods - [`a20be0a`](https://github.com/jellyfin/jellyfin/commit/a20be0aa821dc20cfcaa4b1a946a95cd65f33f41) revert formating - [`f813554`](https://github.com/jellyfin/jellyfin/commit/f8135541f1c3ba6484688a3c5f44289c9b0b7811) don't include all languages when prefferedImageLanguages are set ### 📊 Changes **6 files changed** (+107 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `CONTRIBUTORS.md` (+1 -0) 📝 `MediaBrowser.Controller/Entities/BaseItem.cs` (+10 -0) 📝 `MediaBrowser.Model/Configuration/LibraryOptions.cs` (+8 -0) 📝 `MediaBrowser.Model/Extensions/EnumerableExtensions.cs` (+55 -9) 📝 `MediaBrowser.Providers/Manager/ItemImageProvider.cs` (+7 -2) 📝 `MediaBrowser.Providers/Manager/ProviderManager.cs` (+26 -13) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** Implements a new field PreferredImageLanguages in libraryOptions that accepts an array of language codes and nolang for no language. If the array has values, it will sort images based on this order. It will only fall back to no-language images and not to other languages, to avoid adding images in non-preferred languages. When no preferred image languages are set, it will fall back to the old behavior. The PR for jellyfin-web: https://github.com/jellyfin/jellyfin-web/pull/7492 **Features implemented** https://features.jellyfin.org/posts/2173/image-fetcher-preferred-language https://features.jellyfin.org/posts/2734/fallback-language-for-posters https://features.jellyfin.org/posts/3192/logos-should-select-the-correct-language Closes https://github.com/jellyfin/jellyfin/pull/14078 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:30:43 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14494