mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Albums added to playlists sorted by ItemIDs not track numbers #6528
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 @cmt29 on GitHub (Nov 30, 2024).
This issue respects the following points:
Description of the bug
When adding an album to a playlist, the tracks are sorted by ItemIDs rather than track numbers, resulting in an apparent random ordering.
Reproduction steps
What is the current bug behavior?
Tracks from album added to playlists are in an apparent random order.
What is the expected correct behavior?
Tracks should be added to playlist in album order, sorted by track numbers.
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.3
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
As discussed in Jellyfin Forums here: https://forum.jellyfin.org/t-album-tracks-shuffle-when-added-to-playlists
@cmt29 commented on GitHub (Dec 3, 2024):
@gnattu Thanks for engagement on this issue. Why an enhancement and not a bug?
Any good workarounds?
Thanks.
@thearrow commented on GitHub (Jan 9, 2025):
would love to help with this if possible. ran into this issue today and it's very annoying. i'm a total noob to the jellyfin repos, but my initial look suggests:
playlistIdand a collection ofitemIdsto add to that playlist.would it be possible to add additional preprocessing to the backend code that checks whether each of the new items is a music track with a track number, and if so, sort the items by that track number before actually adding them?
@JamesSpellman commented on GitHub (Mar 15, 2025):
Tracks and Disc order. I've been rearranging The Wall over and over and it doesn't remember half of it. Going to try maybe adding songs to the playlist one at a time.
@u-lulu commented on GitHub (Apr 11, 2025):
For anyone else running into this issue, I've discovered a workaround: instead of adding the album itself to a playlist, press the play button on the album, open the play queue, and save the play queue to the playlist instead. This preserves the order of the album.
@cmt29 commented on GitHub (Apr 11, 2025):
Thanks @u-lulu - I hadn't thought of that. Good workaround!
@felix920506 commented on GitHub (Apr 17, 2025):
Can confirm this happens on 10.10.7
Going to wait for this issue to be confirmed on master before tagging as confirmed.
Confirming this issue on master is currently blocked by #13936
@theguymadmax commented on GitHub (May 15, 2025):
This issue is fixed on the current master.
@ldexterldesign commented on GitHub (Jul 13, 2025):
👋 @theguymadmax,
Thanks for notification
Please confirm what version I/we should (all) update to, to resolve this issue?
🤞
@ldexterldesign commented on GitHub (Jul 13, 2025):
👋 https://github.com/jellyfin/jellyfin-web/issues/7019