[GH-ISSUE #766] Not all songs are added to the queue when a playlist is played #1392

Open
opened 2026-03-14 14:37:40 +03:00 by kerem · 4 comments
Owner

Originally created by @arc-d3v on GitHub (Jul 3, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/766

Describe the bug
I have a playlist with 200+ songs, when I select a song in a playlist, spotify player doesn't add the whole playlist to the queue. the weird part is that the number of songs added to the queue is random depending on the song I select first, sometimes 20, 40 or only 5.
Multiple playlists have the same issue.
When I select a song with my phone using the same streaming backend, all songs are correctly added to the queue.

To Reproduce
Select a song in a playlist with spotify player.

Expected behaviour
All songs in the selected playlist added to the queue.

Log and backtrace
Log and backtrace of a run reproducing the bug to help debug the issue, which are usually located in $HOME/.cache/spotify-player/.

spotify-player-25-07-03-12-58.log

Screenshots

Image

Image

You can see that Hydrogen for example is not in the queue.

Environment

  • OS: Arch Linux
  • Application version: 0.20.6
Originally created by @arc-d3v on GitHub (Jul 3, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/766 **Describe the bug** I have a playlist with 200+ songs, when I select a song in a playlist, spotify player doesn't add the whole playlist to the queue. the weird part is that the number of songs added to the queue is random depending on the song I select first, sometimes 20, 40 or only 5. Multiple playlists have the same issue. When I select a song with my phone using the same streaming backend, all songs are correctly added to the queue. **To Reproduce** Select a song in a playlist with spotify player. **Expected behaviour** All songs in the selected playlist added to the queue. **Log and backtrace** Log and backtrace of a run reproducing the bug to help debug the issue, which are usually located in `$HOME/.cache/spotify-player/`. [spotify-player-25-07-03-12-58.log](https://github.com/user-attachments/files/21035641/spotify-player-25-07-03-12-58.log) **Screenshots** ![Image](https://github.com/user-attachments/assets/cd18b6f2-1fb8-4a0b-a68f-069798b4ff0a) ![Image](https://github.com/user-attachments/assets/5bfa3724-679b-4157-b36a-fcdc25b62298) You can see that Hydrogen for example is not in the queue. **Environment** - OS: Arch Linux - Application version: 0.20.6
Author
Owner

@DaftVadeR commented on GitHub (Jul 15, 2025):

I'm not sure if this is related, but I think shuffle doesn't work because of it. If you play a large playlist on shuffle, it plays tracks from within the same 100 track section. Ignoring the rest of the playlist, only moving 40 indices away in either direction from the initial track played.

<!-- gh-comment-id:3071998347 --> @DaftVadeR commented on GitHub (Jul 15, 2025): I'm not sure if this is related, but I think shuffle doesn't work because of it. If you play a large playlist on shuffle, it plays tracks from within the same 100 track section. Ignoring the rest of the playlist, only moving 40 indices away in either direction from the initial track played.
Author
Owner

@aome510 commented on GitHub (Jul 26, 2025):

I have a playlist with 200+ songs, when I select a song in a playlist, spotify player doesn't add the whole playlist to the queue. the weird part is that the number of songs added to the queue is random depending on the song I select first, sometimes 20, 40 or only 5.

Your observation about the number of songs queued depends on the starting song is correct and it matches mine as well. This is why I normally use PlayRandom instead of ChooseSelected to start playing a playlist to avoid having only a few songs played or when I want to change the set of songs played.

I believe this weird behaviour comes from librespot and how the library handles the playback. I'm pretty sure they have an open issue about it. It's interesting that you don't encounter the same issue when selecting song from other devices though cause I never tried that before 🤔.

<!-- gh-comment-id:3123365873 --> @aome510 commented on GitHub (Jul 26, 2025): > I have a playlist with 200+ songs, when I select a song in a playlist, spotify player doesn't add the whole playlist to the queue. the weird part is that the number of songs added to the queue is random depending on the song I select first, sometimes 20, 40 or only 5. Your observation about **the number of songs queued depends on the starting song** is correct and it matches mine as well. This is why I normally use `PlayRandom` instead of `ChooseSelected` to start playing a playlist to avoid having only a few songs played or when I want to change the set of songs played. I believe this weird behaviour comes from [librespot](https://github.com/librespot-org/librespot) and how the library handles the playback. I'm pretty sure they have an open issue about it. It's interesting that you don't encounter the same issue when selecting song from other devices though cause I never tried that before 🤔.
Author
Owner

@arc-d3v commented on GitHub (Jul 28, 2025):

Your observation about the number of songs queued depends on the starting song is correct and it matches mine as well. This is why I normally use PlayRandom instead of ChooseSelected to start playing a playlist to avoid having only a few songs played or when I want to change the set of songs played.

Indeed, when I use PlayRandom it actually queue properly now.

I believe this weird behaviour comes from librespot and how the library handles the playback. I'm pretty sure they have an open issue about it. It's interesting that you don't encounter the same issue when selecting song from other devices though cause I never tried that before 🤔.

Yes that's weird, I didn't mention but I use spotifyd as streaming backend, which uses librespot as well, never had problem with shuffle when starting the selected song on spotfyd with my phone. That's why I think it is spotify_player side.

<!-- gh-comment-id:3128337533 --> @arc-d3v commented on GitHub (Jul 28, 2025): > Your observation about **the number of songs queued depends on the starting song** is correct and it matches mine as well. This is why I normally use `PlayRandom` instead of `ChooseSelected` to start playing a playlist to avoid having only a few songs played or when I want to change the set of songs played. Indeed, when I use PlayRandom it actually queue properly now. > I believe this weird behaviour comes from [librespot](https://github.com/librespot-org/librespot) and how the library handles the playback. I'm pretty sure they have an open issue about it. It's interesting that you don't encounter the same issue when selecting song from other devices though cause I never tried that before 🤔. Yes that's weird, I didn't mention but I use spotifyd as streaming backend, which uses librespot as well, never had problem with shuffle when starting the selected song on spotfyd with my phone. That's why I think it is spotify_player side.
Author
Owner

@aome510 commented on GitHub (Jul 29, 2025):

Related to my comment in https://github.com/aome510/spotify-player/issues/153#issuecomment-3132752694, I think if we implemented a custom playback/queue logic for the integrated player, then the shuffle logic can probably be more consistent and predictable.

<!-- gh-comment-id:3132764111 --> @aome510 commented on GitHub (Jul 29, 2025): Related to my comment in https://github.com/aome510/spotify-player/issues/153#issuecomment-3132752694, I think if we implemented a custom playback/queue logic for the integrated player, then the shuffle logic can probably be more consistent and predictable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1392
No description provided.