Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrobble playing track when removed from queue #196

Merged

Conversation

adamantike
Copy link
Contributor

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.

adamantike and others added 2 commits June 15, 2023 22:42
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
Copy link
Owner

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 :)

@dweymouth dweymouth merged commit 762f012 into dweymouth:main Jun 16, 2023
@adamantike adamantike deleted the fix/scrobble-track-when-removed-from-queue branch June 16, 2023 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants