mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #859] [MERGED] Fix behavior after last track of an album/playlist #1116
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#1116
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?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/859
Author: @roderickvd
Created: 10/5/2021
Status: ✅ Merged
Merged: 10/13/2021
Merged by: @roderickvd
Base:
dev← Head:fix-album-play📝 Commits (2)
289b4f9Fix behavior after last track of an album/playlist0f5d610Revert 10 track history window📊 Changes
2 files changed (+16 additions, -17 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
connect/src/spirc.rs(+15 -17)📄 Description
When autoplay is disabled, then loop back to the first track instead of 10 tracks back. Continue or stop playing depending on the state of the repeat button.
When autoplay is enabled, then extend the playlist after the last track. #844 broke this such that the last track of an album or playlist was never played.
Fixes: #434
Note: when an album with more than 10 tracks is started over half-way, and autoplay is disabled, then
librespotdoesn't loop back to the first track but about 10 tracks back. This isn't correct of course, but not a regression either as this already was the case. For reasons unknown to me, Spotify sends a frame without all tracks in this case, solibrespotcan't know. I'm fine with this for the scope of this PR -- all is well now if an album is played from the start.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.