diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 9d040f3..9e9a07f 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -182,6 +182,10 @@ 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 {