Nah, 3KiB should be enought to read.
This commit is contained in:
parent
341ea73e97
commit
63fcb36e60
@ -18,7 +18,7 @@ const (
|
|||||||
IcecastPlaylistDateFormat = "02/Jan/2006:15:04:05 -0700"
|
IcecastPlaylistDateFormat = "02/Jan/2006:15:04:05 -0700"
|
||||||
SongTimeFormat = "2006 15:04-0700"
|
SongTimeFormat = "2006 15:04-0700"
|
||||||
|
|
||||||
bufferSize = 16384
|
bufferSize = 3072
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -133,7 +133,7 @@ func icecastLastPlayedSongs(playlistPath string, n int) ([]Song, error) {
|
|||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
lines = lines[:len(lines)-1]
|
lines = lines[:len(lines)]
|
||||||
|
|
||||||
if len(lines) > n {
|
if len(lines) > n {
|
||||||
lines = lines[len(lines)-n:]
|
lines = lines[len(lines)-n:]
|
||||||
|
Loading…
Reference in New Issue
Block a user