mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1687] librespot loses playlist position when active playlist is changed. #768
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#768
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 @miltieIV2 on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1687
Look for similar bugs
Checked
Description
librespot loses the playing position when tracks are added to the actively playing playlist. It seems to jump backwards in the playlist by the number of tracks that were added to the playlist while the current track was playing. The Spotify provided clients probably re-sync the playlist before they start into the whole next track visual and pre-fetching, or they use an absolute instead of a relative position in the playlist.
Version
33bf3a7(HEAD -> dev, origin/dev, origin/HEAD) EmitSetQueueevent (#1677)Built with
cargo --lockedto get around the vergen issueHow to reproduce
Steps to reproduce the behavior in librespot e.g.
Log
Host (what you are running
librespoton):Additional context
I have had this problem forever. My workaround is to record the current playlist position when I add tracks so I can manually restore it when I notice it's in the wrong place. If I forget, I have to dig around in the recently played tracks to figure out where I was. I grow these Daylist Archive playlists throughout the day (when the next Daylist comes out) until they hit the Spotify limit (around 10000 tracks), then I start another Daylist Archive. Most of the time I'm adding to the playing playlist.
@photovoltex commented on GitHub (Feb 12, 2026):
Could you update your description? That seems to be copy-pasted and not been replaced in the process