From 63fcb36e60ac43cf2cf754619639e18f90f8d279 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 12 Mar 2023 22:06:15 +0400 Subject: [PATCH] Nah, 3KiB should be enought to read. --- internal/radio/icecast.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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:]