KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
30.83k stars 1.28k forks source link

Disconnecting listening device scrambles playlist [BUG] #1905

Open DerekGooding opened 2 months ago

DerekGooding commented 2 months ago

Is there an existing issue for this? (Please read the description)

Current Behavior

When I disconnect my listening device or have no device connected, it continually skips songs every second or so. Even if you pause first, then disconnect, leaving spotube open will quickly burn through the playlist and into suggestions.

Expected Behavior

I'd rather the application pause when I put my Bluetooth earbud into the charging dock. That way I can return to the song I was listening to later.

Steps to reproduce

  1. Open app with no listening devices connected

That's it. The app starts skipping through songs.

Logs

Logs ``` ```

Operating System

Windows

Spotube version

v3.8.1

Installation source

Website (spotube.krtirtho.dev)

Additional information

I'm guessing there is a check for device count == 0 somewhere. And instead of pausing, it goes to the next song.

Self grab