Closed kgarner7 closed 2 years ago
current-song
is used for both MPRIS as well as the Windows MediaPlaybackStatus. Strangely enough, I don't see any issues with it being off by one when using playQueue.current (at least on Windows) so you can leave it as is.
If you're able to test if MPRIS is off by one that would be helpful, but otherwise this should be good to merge.
MPRIS from this function is probably also off, but it isn't noticeable because of handleOnEndedPlayer1
and 2, which also send to MPRIS with the next song. The correct thing to do would probably be to just use currentSong
, but I'm not sure it matters
This seeks to fix #362. Instead of using
playerQueue.current
, use the same logic for scrobbling.I'm not sure whether the
current-song
event should also use currentSong or not?