diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index e0120f3..80128f4 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -140,7 +140,7 @@ func lastPlayedSong(playlistPath string) (*Song, error) { return nil, nil } - fields := bytes.Split(lines[len(lines)-2], []byte("|")) + fields := bytes.Split(lines[len(lines)-3], []byte("|")) tim, _ := time.Parse(IcecastPlaylistDateFormat, string(fields[0]))