diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 9deb94e..967c481 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -18,7 +18,7 @@ const ( IcecastPlaylistDateFormat = "02/Jan/2006:15:04:05 -0700" SongTimeFormat = "2006 15:04-0700" - bufferSize = 16384 + bufferSize = 3072 ) var ( @@ -133,7 +133,7 @@ func icecastLastPlayedSongs(playlistPath string, n int) ([]Song, error) { return nil, nil } - lines = lines[:len(lines)-1] + lines = lines[:len(lines)] if len(lines) > n { lines = lines[len(lines)-n:]