aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-21 21:24:27 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-21 21:24:27 +0200
commit70279c4c62ae4180706c0d27c5bbcf275c903100 (patch)
tree486c471b61618a96d98d8603db188c2101dbb7bd /main.go
parent95a65d718c3bc50324a0f4a75aa5a586eeadc4ef (diff)
downloadWRMS-70279c4c62ae4180706c0d27c5bbcf275c903100.tar.gz
WRMS-70279c4c62ae4180706c0d27c5bbcf275c903100.zip
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.
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 0 insertions, 1 deletions
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))
}