From 98b0a8085a2ff61bebc6dc7010f5c87343171bc9 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 30 Aug 2022 18:20:24 +0400 Subject: [PATCH] No, it skips 2 tracks instead of 1. Let's get back to -2. --- internal/radio/icecast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index a8c8ea5..88a5ecc 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -150,7 +150,7 @@ func lastPlayedSongs(playlistPath string, n int) ([]Song, error) { n = len(lines) } - lines = lines[len(lines)-n-3 : len(lines)-3] + lines = lines[len(lines)-n-2 : len(lines)-2] for _, line := range lines { fields := bytes.Split(line, []byte("|"))