mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-24 07:30:57 +01:00
Versions are sorted in reverse alphabetical order when filename includes resolution #6258
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#6258
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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.