mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Versions are sorted in reverse alphabetical order when filename includes resolution #6256
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?
Originally created by @theguymadmax on GitHub (Sep 9, 2024).
When multiple files share the same resolution in their filenames, they are sorted in reverse alphabetical order.

54f663b0f3/Emby.Naming/Video/VideoListResolver.cs (L144)Since the resolutions are sorted based on the MediaInfo, it should be sufficient to change
OrderByDescendingto justOrderBy.Making this change resolves the issue, and resolutions are sorted alphabetical, with higher resolutions listed first, regardless of whether the resolution is included in the filename.
Server: 10.9.11
@felix920506 commented on GitHub (Sep 9, 2024):
Please provide the media info of all 3 files
@theguymadmax commented on GitHub (Sep 9, 2024):
Those were all the same file, just renamed. I'll also upload with different resolutions in a bit.
@theguymadmax commented on GitHub (Sep 9, 2024):
Example with different resolution, current behavior:


With proposed changed in code:
Only two files tested here one 2160p media info above and 1080p info below. All versions are just copies.