Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shuffle takes only part of playlist #788

Open
Myp3a opened this issue Jan 21, 2021 · 17 comments · May be fixed by #1317
Open

Shuffle takes only part of playlist #788

Myp3a opened this issue Jan 21, 2021 · 17 comments · May be fixed by #1317
Labels
bug A functionality or parts of a program that do not work as intended

Comments

@Myp3a
Copy link

Myp3a commented Jan 21, 2021

Description
When shuffle is enabled, only part of playlist is shuffled. Something like top 50 songs are always shuffled and a half of second 50. Everything below 100 songs is ignored.
Occurs on Liked Songs and custom public playlists.

To Reproduce

  1. Go to any playlist longer than 100 songs
  2. Enable shuffle
  3. See that not all songs are shuffled

Expected behavior
Entire playlist should be shuffled

Versions (please complete the following information):

  • OS: Arch Linux
  • Spotifyd: spotifyd 0.2.24-2
  • cargo: cargo 1.48.0
@Myp3a Myp3a added the bug A functionality or parts of a program that do not work as intended label Jan 21, 2021
@robinvd
Copy link
Contributor

robinvd commented Jan 21, 2021

so any song after the 50th is never played?

@mikkelrask
Copy link

This is a general Spotify problem, I don't think it has anything to do with the daemon.

@Myp3a
Copy link
Author

Myp3a commented Jan 21, 2021

so any song after the 50th is never played?

Yes. Playback stops after playing shuffled queue

This is a general Spotify problem, I don't think it has anything to do with the daemon.

It might be, but full desktop client works fine. So I believe that some workaround is possible

@mikkelrask
Copy link

I experince it in any spotify player (including the original app) i have tried so far. 🤷

@Myp3a
Copy link
Author

Myp3a commented Jan 21, 2021

I experince it in any spotify player (including the original app) i have tried so far. 🤷

Just tried it again with my Android phone and Windows app. Works fine in both ways, however, queue isn't preserved. Seems like new client receiving current track and playlist data, then restoring playback state and shuffling playlist again

@Semmu
Copy link

Semmu commented Feb 25, 2021

Spotify actually has 2 shuffle modes, both limited to around 80 tracks IIRC.

  • When you open a playlist and click on "shuffle play", it selects random 80 tracks from the whole playlist and arranges them randomly, then plays.
  • If you click on a track in the playlist, play it, then enable shuffling, only the close context (again, around 80 tracks) of that particular song get selected, shuffled, and played.

I'm not sure about the exact number but this is what I've read and my experience also confirms this behaviour.

@JojiiOfficial
Copy link
Member

@Semmu
Is there a reason for that? This kinda sounds like a bad shuffle algorithm to me. If i shuffle a playlist, I want to hear every song once in a while.

@Myp3a
Copy link
Author

Myp3a commented Feb 25, 2021

Spotify actually has 2 shuffle modes, both limited to around 80 tracks IIRC.

* When you open a playlist and click on "shuffle play", it selects random 80 tracks from the whole playlist and arranges them randomly, then plays.

* If you click on a track in the playlist, play it, **then** enable shuffling, only the close context (again, around 80 tracks) of that particular song get selected, shuffled, and played.

I'm not sure about the exact number but this is what I've read and my experience also confirms this behaviour.

Most of the time I click on a track or on a shuffle button in liked songs. I skip a lot of tracks, definitely more than 100, and listen for more than 6 hours. Still, my playlist is shuffled. It goes on and on, don't really know, what happens at the end - probably it ends, because all songs become played or skipped.

However, I downloaded all my music - if tracks aren't cached, they really shuffle in groups of ~80 per shuffle activate

@Semmu
Copy link

Semmu commented Feb 25, 2021

@Semmu
Is there a reason for that? This kinda sounds like a bad shuffle algorithm to me. If i shuffle a playlist, I want to hear every song once in a while.

@JojiiOfficial
I don't know the reason for this, but I guess it is a limitation of how Spotify works, as it seems to have a limit on the queue size to be precise.
And this issue is very old, I found some reports from 2016 and it is still not fixed. I'm not sure how other users (like @Myp3a ) could experience different behaviour, but I guess it also depends on the client itself, and wether you downloaded the tracks or not, etc.

Some reports I found:

Spotify says they fixed this issue, but they did not, and you can see users still complaining after all these years... (It is ridiculous in my opinion.)

So I guess this issue reported here is not caused by spotifyd, but rather Spotify itself.

@testbughub
Copy link

I've noticed this issue myself.
It works fine in the Android app, but spotifyd only takes a portion and shuffles.
I usually only play on one playlist (with 1500+ tracks), and will only play a handful of songs, unless I manually select something further down the list.

@stale
Copy link

stale bot commented May 29, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Issues that will not be fixed under any circumstances label May 29, 2021
@stale stale bot closed this as completed Jun 8, 2021
@georgefst
Copy link

Still an issue.

@Semmu
Copy link

Semmu commented Aug 25, 2022

I have a couple of theories about how Spotify works but did not test them extensively yet.

I think the shuffling behavior is affected whether you have repeat enabled or not. If you do, then Spotify is only going to select a number of tracks initially and then repeat them, but if you have repeat disabled, then it will always grab some new truly random tracks from the playlist to append to the queue. The downside of this is that you can't have a very long playlist on repeat because you need to choose between endless music (repeat enabled) or playing the whole playlist (repeat disabled)...

I also discovered that when you have some playlist in shuffle playing and you switch devices, then it seems to truncate the queue and from that point on you are only going to listen to a select few tracks again, like it forgot the original playlist you were playing and only the queue got transferred to the new device.

Also, shuffle works differently if you open a playlist and click on a track and then enable shuffle (which selects and shuffles only the close neighbors of the track on the playlist), vs. when you click on the "shuffle play" button on the playlist page (true shuffle from the whole playlist)...


A LOT of inconsistencies in Spotify in general... 😒

@georgefst
Copy link

Now that the stale bot is finally dead (#1061), could we please get this reopened?

@eladyn
Copy link
Member

eladyn commented Aug 26, 2022

@Semmu thanks for sharing your findings! Do those apply to Spotify in general (also official clients) or is this specifically the behaviour of spotifyd?

@Semmu
Copy link

Semmu commented Aug 26, 2022

@eladyn I haven't done proper testing yet, but my guess is that the behavior is independent of the client.

@Semmu
Copy link

Semmu commented Jan 14, 2023

This may actually be a librespot issue: librespot-org/librespot#442

@eladyn eladyn added blocked by: librespot Issues that are blocked by librespot's upstream and removed wontfix Issues that will not be fixed under any circumstances investigating labels Jan 14, 2023
@eladyn eladyn reopened this Oct 15, 2023
@eladyn eladyn removed the blocked by: librespot Issues that are blocked by librespot's upstream label Dec 29, 2024
@eladyn eladyn linked a pull request Dec 29, 2024 that will close this issue
2 tasks
@Spotifyd Spotifyd deleted a comment Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A functionality or parts of a program that do not work as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants