You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When duplicating a playlist, the track order is not preserved. I have a playlist that I want to use as a base for a new playlist. When I select the playlist in the web UI and choose "Add to Playlist" -> "New", I get a new playlist. However, the tracks are re-sorted or the original order is not preserved. Is this intentional?
Hello! I am very new to this codebase as I literally just got it running locally and started looking over it. I did some digging, and it seems like the issue stems from the Playlist.GetPlaylistItems method. The InternalItemsQuery that runs (specifically in the case if the item is a Folder type) tells the query to order items by ItemSortBy.SortName and SortOrder.Ascending. Removing this line fixes the issue - but due to my unfamiliarity with the codebase I am not sure if this would break existing functionality. If you'd like, you can assign the issue to me, and I can dig in a little deeper to make sure it does not break anything else.
I think changing the default sorting when fetching playlist items is reasonable here. I see little use for the default sort, and since playlist items are inherently ordered, they should be returned in that order by default.
And any clients that fetch playlists will most likely apply the correct sorting already, which shouldn't break.
Please describe your bug
When duplicating a playlist, the track order is not preserved. I have a playlist that I want to use as a base for a new playlist. When I select the playlist in the web UI and choose "Add to Playlist" -> "New", I get a new playlist. However, the tracks are re-sorted or the original order is not preserved. Is this intentional?
Reproduction Steps
Jellyfin Version
10.8.13
if other:
none
Environment
Jellyfin logs
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: