Patch: fix incorrect listenbrainz submissions

Jake Coble <[email protected]> Sat, 20 Dec 2025 17:11:27 -0500
Newsgroups gmane.emacs.emms.user
Message-ID <[email protected]>
The function `emms-browser-add-tracks-and-play' switches tracks before
invoking `emms-stop'. This causes the hooks in
`emms-player-stopped-hook' to run after the current track has changed.
This means that, when `emms-listenbrainz-scrobbler-stop-hook' is
called, it submits the track we switched to, not the track that's
playing.

This patch fixes that by storing the relevant track instead of
depending on the currently playing track.