mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #15062] Add media source version prioritization #14228
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/15062
Author: @mlaustin44
Created: 10/21/2025
Status: 🔄 Open
Base:
master← Head:config-version-order📝 Commits (2)
8c092a5Add media source version prioritization0fcc8d1sealing test class per CodeQL📊 Changes
5 files changed (+243 additions, -4 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
MediaBrowser.Controller/Entities/BaseItem.cs(+29 -4)➕
MediaBrowser.Model/Configuration/MediaSourceOptions.cs(+35 -0)📝
MediaBrowser.Model/Configuration/ServerConfiguration.cs(+6 -0)📝
tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs(+172 -0)📄 Description
Changes
Adds server configuration options to control the ordering of media sources when multiple video versions are available (e.g., 4K, 1080p, 720p). Administrators can set a preferred resolution (e.g., 1080p) to be selected first, and configure whether remaining versions sort by ascending or descending quality. This allows control of which version is used by default during playback, which is highly useful for libraries that have a 4k and a 720p/1080p version of content - as right now the default behavior would be to transcode the 4k version!
This PR only covers the server, but I intend to work on a matching PR to the web app once this is merged.
Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.