From a728ea2164b6ce336054bf6dd2291eebdf631f0b Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 16 May 2024 01:44:45 +0400 Subject: [PATCH] Let's try to not add 5 seconds to Song.StartAt. --- internal/http/dj_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/dj_handlers.go b/internal/http/dj_handlers.go index 4ecc2b5..71b61cc 100644 --- a/internal/http/dj_handlers.go +++ b/internal/http/dj_handlers.go @@ -89,7 +89,7 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) { // Here 5 seconds are being added because it is approximately the // time between the creation of this Song object and when ezstream // actually starts to play it. - StartAt: time.Now().Add(5 * time.Second)} + StartAt: time.Now()} // .Add(5 * time.Second) if newSong.Artist == "" && newSong.Title == "" { log.Println("Playlist:", nxt, "has no artist and title tags.")