mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[PR #124] [CLOSED] Support smart shuffle #225
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#225
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/devgianlu/go-librespot/pull/124
Author: @devgianlu
Created: 10/13/2024
Status: ❌ Closed
Base:
master← Head:smart-shuffle📝 Commits (1)
0c2ef74feat: support smart shuffle📊 Changes
2 files changed (+78 additions, -5 deletions)
View changed files
📝
cmd/daemon/player.go(+51 -5)📝
tracks/tracks.go(+27 -0)📄 Description
This PR aims at adding support for Smart Shuffle. It is very early stages as some reverse engineering is required.
Spotify introduced the concept of signals and lenses. For Smart Shuffle we send a
resetsignal to the playlist with theenhancelense. The result is a list of ~310 tracks for a ~210 tracks playlist, but it is not clear where they should go. There is a suspicious metadata key calledshuffle.distributionthat may play a role in this. I have also noticed that the shuffle seed has been added to the session state.There might be some refactoring required to handle the "injection" of tracks inside the current tracks list. Perhaps something similar to how the queue works?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.