dweymouth / supersonic

A lightweight and full-featured cross-platform desktop client for self-hosted music servers
GNU General Public License v3.0
882 stars 45 forks source link

Scrobble playing track when removed from queue #196

Closed adamantike closed 1 year ago

adamantike commented 1 year ago

This change fixes two TODO comments, by scrobbling the currently playing track if it's removed from the queue, and only run OnSongChange callbacks when the playing track is affected.

dweymouth commented 1 year ago

Thanks for going through all these TODOs! When testing this I discovered another bug where the next track would get scrobbled when removing the currently playing track (since the MPV player would invoke the OnTrackChange callback, where checkScrobble was also called). I pushed a commit to fix this up as well :)