You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spamming 'previous' causes silent playback, UI desync, and player lockup (Stopped state) #366
Describe the bug
When listening via the native streaming player (librespot), pressing the "previous" key before the 3-second mark on the very first track in the queue completely bricks the player.
The audio goes silent.
The TUI progress bar stops moving.
Pressing play/pause (Spacebar) or attempting to seek fails to recover playback.
The only way to restore audio is to manually select and press a track (same or different) or use an external Spotify client to transfer playback.
To Reproduce
Steps to reproduce the behavior:
Search for a song and play it.
Spam the Prev button / the keyboard previous button / playerctl previous.
Observe.
Expected behavior
It should repeat the track.
Desktop (please complete the following information):
I've attempted to fix it in my fork Oud-Idk/spotatui. It successfully simply repeated the track when the track is the first instead of going to a nonexistent previous track, but there's still a lingering problem. For example, when I spam press Prev on the 5th track (meaning I pressed Next 5 times to be on this track), the same behavior happens.
I've attached logs since my provider made my video extra crunchy
Activity
fix(streaming): restart the first track on Previous (LargeModGames#473)