From 70279c4c62ae4180706c0d27c5bbcf275c903100 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 21 May 2023 21:24:27 +0200 Subject: continue playback when adding a song to an empty queue Now WRMS only switches the playback state when an admin calls the /playpause endpoint. When the queue runs out of songs the state is kept and continues when a new song is added. --- main.go | 1 - 1 file changed, 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 956f374..2b0a14d 100644 --- a/main.go +++ b/main.go @@ -137,7 +137,6 @@ func addHandler(w http.ResponseWriter, r *http.Request) { } wrms.AddSong(song) - wrms.Broadcast(Event{"add", []Song{song}}) fmt.Fprintf(w, "Added song %s", string(data)) } -- cgit v1.2.3