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. --- upload.go | 1 - 1 file changed, 1 deletion(-) (limited to 'upload.go') diff --git a/upload.go b/upload.go index b3778ec..f3e8e52 100644 --- a/upload.go +++ b/upload.go @@ -66,7 +66,6 @@ func (b *UploadBackend) upload(w http.ResponseWriter, r *http.Request) { } wrms.AddSong(song) - wrms.Broadcast(Event{"add", []Song{song}}) fmt.Fprintf(w, "Added uploaded song %s", string(fileName)) } -- cgit v1.2.3