spotify-player icon indicating copy to clipboard operation
spotify-player copied to clipboard

Queue Duplication and Playback Stops When Playing Songs via Search in Spotify-Player

Open dark-wizz opened this issue 1 year ago • 4 comments

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.

dark-wizz avatar Jan 26 '25 17:01 dark-wizz

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

cdslayallday avatar Jan 27 '25 03:01 cdslayallday

@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

dark-wizz avatar Jan 27 '25 06:01 dark-wizz

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.

aome510 avatar Feb 04 '25 02:02 aome510

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

dark-wizz avatar Feb 04 '25 02:02 dark-wizz