mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #297] Shuffle doesn't shuffle through all songs in a list #158
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#158
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 @Marcos-Fidelis on GitHub (Nov 25, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/297
(I'm filling this with the suggested fields)
Shuffle function only shuffles through groups of 50 songs at a time, often in a loop of under 20 songs.
Like if I set it to shuffle in song number 6 it will select songs from 1-50, if I select song number 60 it will shuffle through songs 51-100. It will often repeat before hitting half of them.
All I did to trigger this was set my liked tracks to shuffle
I expected that settigns shuffle to on it would shuffle through all my songs
can't offer a log, could offer a screen recording of my skipping through the songs and only the same group of songs flashing if you'd like, but it'd be just as is described, it only shuffles through blocks of 50.
Additional context:
I have a lot of songs (1430) in my liked tracks list and that may be causing some issue.
I am also connecting to a spotify application, not a device on a secondary open app
@aome510 commented on GitHub (Nov 28, 2023):
I remembered encountering this kind of 20-song looping behaviour before when playing songs at the beginning of a large playlist. Will not see this looping behaviour if playing songs at the middle of the playlist or at the end. My guess is that the third-party library
spotify_playeruses for streaming has an optimization to only loads songs if needed.FYI, I normally use
PlayRandomto start a new playback with a random entry song when the current playback feels too "repeat".If you start a playback inside the liked tracks page, there is a configurable limit
tracks_playback_limit(default=50) as in https://github.com/aome510/spotify-player/blob/master/docs/config.md#general on number of tracks in that playback. To provide some context, to start atracksplayback via Spotify APIs, you'll need to specify all the tracks' IDs inside the request URL. Because Spotify has a length limit on the request URL, there is a limit for # of tracks inside atracksplayback.You can configure
tracks_playback_limitto a bigger value, e.g300-500, but something big like1000will not work.@aome510 commented on GitHub (Nov 29, 2023):
It's actually a bug of the library: https://github.com/librespot-org/librespot/issues/442. Unfortunately, nothing can be done from
spotify_playerside.