diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index fc57a46..d7b406e 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -189,6 +189,7 @@ func (pw *PlaylistLogWatcher) Watch(playlistPath string, n int) (err error) { if mask&syscall.IN_MODIFY > 0 { lastPlayedCacheMutex.Lock() if songs, err := icecastLastPlayedSongs(playlistPath, 1); err == nil && len(songs) > 0 { + CheckAndUpdateMostListenedSong(songs[0], currentlyPlaying) if currentlyPlaying.Time == "" { currentlyPlaying = songs[0] } else {