Every time a song in the jukebox playlist ends both the PLAYLIST_UPDATED and SONG_UPDATED are currently getting called.
However since the PLAYLIST_UPDATED also contains the info about the new song, the SONG_UPDATED is effectively redundant and is unnecessary.
This likely happens because the song ending causes server to remove the new song from the queue causing the playlist updated also to be sent even if it technically be unnecessary.
So to fix this one of these messages should stop to be sent in this case.
Additionally the SONG_UPDATED messages only includes the song name and the timestamp when it started, while the one in the playlist message also includes the player who added it and the queue id.
The queue id likely would be smart to add to the SONG_UPDATED message as it would make it easier to match the song to the correct song from the queue. (Mainly relevant if the PLAYLIST_UPDATED isn't sent.)
Also if we keep the SONG_UPDATED does the PLAYLIST_UPDATED need to give us the the current song necessarily?
Every time a song in the jukebox playlist ends both the PLAYLIST_UPDATED and SONG_UPDATED are currently getting called.
However since the PLAYLIST_UPDATED also contains the info about the new song, the SONG_UPDATED is effectively redundant and is unnecessary.
This likely happens because the song ending causes server to remove the new song from the queue causing the playlist updated also to be sent even if it technically be unnecessary.
So to fix this one of these messages should stop to be sent in this case.
Additionally the SONG_UPDATED messages only includes the song name and the timestamp when it started, while the one in the playlist message also includes the player who added it and the queue id.
The queue id likely would be smart to add to the SONG_UPDATED message as it would make it easier to match the song to the correct song from the queue. (Mainly relevant if the PLAYLIST_UPDATED isn't sent.)
Also if we keep the SONG_UPDATED does the PLAYLIST_UPDATED need to give us the the current song necessarily?