From eb6b0c68b331af004cc253faf60db963b43bfe7a Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Mar 2023 05:35:39 +0400 Subject: [PATCH] No need in preloading. Because in this moment liquidsoap starts and adds a new song that Icecast writes in playlist.log so IN_MODIFY is being triggered. --- internal/radio/icecast.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index c908759..3b81b22 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -184,10 +184,6 @@ func (pw *PlaylistLogWatcher) Watch(playlistPath string, n int) (err error) { lastPlayedCache = make([]Song, 0, n) - if songs, err := icecastLastPlayedSongs(playlistPath, 1); err == nil && len(songs) > 0 { - currentlyPlaying = songs[0] - } - go func() { for { select {