Skip to content

Question: Is it intentional that jukebox PLAYLIST_UPDATED message is always sent at the same time as SONG_UPDATED? #947

Description

@BillTheBeast

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions