1
0

Let's try to not add 5 seconds to Song.StartAt.

This commit is contained in:
Alexander Andreev 2024-05-16 01:44:45 +04:00
parent c8c153cd62
commit a728ea2164
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -89,7 +89,7 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) {
// Here 5 seconds are being added because it is approximately the // Here 5 seconds are being added because it is approximately the
// time between the creation of this Song object and when ezstream // time between the creation of this Song object and when ezstream
// actually starts to play it. // actually starts to play it.
StartAt: time.Now().Add(5 * time.Second)} StartAt: time.Now()} // .Add(5 * time.Second)
if newSong.Artist == "" && newSong.Title == "" { if newSong.Artist == "" && newSong.Title == "" {
log.Println("Playlist:", nxt, "has no artist and title tags.") log.Println("Playlist:", nxt, "has no artist and title tags.")