Queue Duplication and Playback Stops When Playing Songs via Search in Spotify-Player
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
- Open spotify-player and search for a song using the spotify-player search command.
- Play the song from the search results.
- Check the queue by navigating to the queue menu('z').
- 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
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.
yooooo how do i add the album/track picture on my spotify-player tui???
@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
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.
yes @aome510, thats what i exactly i want. tha'ts the only thing i missing in this TUI comparing to the spotify official client.