Let's try to not add 5 seconds to Song.StartAt.
This commit is contained in:
parent
c8c153cd62
commit
a728ea2164
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user