[GH-ISSUE #669] Queue Duplication and Playback Stops When Playing Songs via Search in Spotify-Player #1326

Open
opened 2026-03-14 14:25:38 +03:00 by kerem · 4 comments
Owner

Originally created by @dark-wizz on GitHub (Jan 26, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/669

Describe the bug
When searching for and playing a song using spotify-player, the song gets duplicated in the queue multiple times (up to 10 times). Additionally, when hitting the 'n' key to skip to the next track, playback stops instead of advancing to the next song. This issue only occurs when initiating playback via spotify-player. If playback is initiated from a mobile device, the queue and skipping('n') functionality work as expected. I tried this with different device such as spotify-player, librespot, spotify mobile, spotify desktop butsame result.

To Reproduce

  1. Open spotify-player and search for a song using the spotify-player search command.
  2. Play the song from the search results.
  3. Check the queue by navigating to the queue menu('z').
  4. Attempt to skip to the next song using the 'n' key.

Expected behaviour
The song should play once without being duplicated in the queue.
Skipping to the next song should continue play the next recommended song for me based on the search like the mobile app's client.

Log and backtrace
spotify-player-25-01-26-22-55.log

Screenshots
Image

Environment

  • OS: Arch Linux
  • Application version: 0.20.4
  • Application features: cargo install spotify_player --features pulseaudio-backend, image, daemon, fzf

Additional context
Add any other context about the problem here.

Originally created by @dark-wizz on GitHub (Jan 26, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/669 **Describe the bug** When searching for and playing a song using spotify-player, the song gets duplicated in the queue multiple times (up to 10 times). Additionally, when hitting the 'n' key to skip to the next track, playback stops instead of advancing to the next song. This issue only occurs when initiating playback via spotify-player. If playback is initiated from a mobile device, the queue and skipping('n') functionality work as expected. I tried this with different device such as spotify-player, librespot, spotify mobile, spotify desktop butsame result. **To Reproduce** 1. Open spotify-player and search for a song using the spotify-player search command. 2. Play the song from the search results. 3. Check the queue by navigating to the queue menu('z'). 4. Attempt to skip to the next song using the 'n' key. **Expected behaviour** The song should play once without being duplicated in the queue. Skipping to the next song should continue play the next recommended song for me based on the search like the mobile app's client. **Log and backtrace** [spotify-player-25-01-26-22-55.log](https://github.com/user-attachments/files/18551003/spotify-player-25-01-26-22-55.log) **Screenshots** ![Image](https://github.com/user-attachments/assets/9263092b-8392-466c-afc5-ae366b59fd67) **Environment** - OS: Arch Linux - Application version: 0.20.4 - Application features: cargo install spotify_player --features pulseaudio-backend, image, daemon, fzf **Additional context** Add any other context about the problem here.
Author
Owner

@cdslayallday commented on GitHub (Jan 27, 2025):

yooooo how do i add the album/track picture on my spotify-player tui???

<!-- gh-comment-id:2614783474 --> @cdslayallday commented on GitHub (Jan 27, 2025): yooooo how do i add the album/track picture on my spotify-player tui???
Author
Owner

@dark-wizz commented on GitHub (Jan 27, 2025):

@cdslayallday

how do i add the album/track picture

build the application using image feature
cargo install spotify_player --features image

documentation: https://github.com/aome510/spotify-player?tab=readme-ov-file#image

<!-- gh-comment-id:2614917160 --> @dark-wizz commented on GitHub (Jan 27, 2025): @cdslayallday > how do i add the album/track picture build the application using image feature `cargo install spotify_player --features image` documentation: https://github.com/aome510/spotify-player?tab=readme-ov-file#image
Author
Owner

@aome510 commented on GitHub (Feb 4, 2025):

This kind of behaviour is expected because playing a song from search means starting a playback consisting of only that song. The reason for playback stops is because you have repeat set to off.

In other words, not really a bug, but a feature request to play similar songs (recommendations?) when the current playback ends.

<!-- gh-comment-id:2632660918 --> @aome510 commented on GitHub (Feb 4, 2025): This kind of behaviour is expected because playing a song from search means **starting a playback consisting of only that song**. The reason for playback stops is because you have `repeat` set to `off`. In other words, not really a bug, but a feature request to play similar songs (recommendations?) when the current playback ends.
Author
Owner

@dark-wizz commented on GitHub (Feb 4, 2025):

yes @aome510, thats what i exactly i want. tha'ts the only thing i missing in this TUI comparing to the spotify official client.

<!-- gh-comment-id:2632693777 --> @dark-wizz commented on GitHub (Feb 4, 2025): yes @aome510, thats what i exactly i want. tha'ts the only thing i missing in this TUI comparing to the spotify official client.
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#1326
No description provided.