mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #12626] [MERGED] Only sort item by width when they have the same path #13292
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/12626
Author: @gnattu
Created: 9/11/2024
Status: ✅ Merged
Merged: 9/18/2024
Merged by: @crobibero
Base:
master← Head:only-sort-when-path-same📝 Commits (2)
ab1f98aOnly sort item by width when they have the same path2cb6607Better doc📊 Changes
2 files changed (+57 additions, -6 deletions)
View changed files
📝
MediaBrowser.Controller/Entities/BaseItem.cs(+1 -6)➕
MediaBrowser.Controller/Entities/MediaSourceWidthComparator.cs(+56 -0)📄 Description
Since emby era we are re-ordering all media sources by its width when reading from database. However, that would break the sorting made by the media prober when resolving multiple versions from different files. Only do such sorting when media streams share the same path to respect the filename based sorting done by the multi version resolver.
This should have little to no impact for most cases are most of the files will only have strictly one video stream.
Changes
Issues
Fixes #12129
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.