diff --git a/internal/radio/mostlistened.go b/internal/radio/mostlistened.go index c3cf249..29df1c5 100644 --- a/internal/radio/mostlistened.go +++ b/internal/radio/mostlistened.go @@ -31,6 +31,9 @@ var mostListened MostListenedSong // So it would be fairer to give these listeners back to a song they was // listening to. func CheckAndUpdateMostListenedSong(cur, prev Song) { + if prev.Song == "" { + return + } l, _ := strconv.Atoi(cur.Listeners) if l > mostListened.Listeners { mostListened = MostListenedSong{