From f756cedae78552d06c5e85beabe92f5e43f6f349 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 9 Mar 2022 23:59:25 +0400 Subject: [PATCH] Debugging Icecast. --- internal/radio/icecast.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 1f55710..794a368 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -76,11 +76,10 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song { } songs_ := strings.Split(string(out), "\n") + log.Println("songs_ =", len(songs_)) for _, song := range songs_ { - log.Println(song) ts := strings.Split(song, "|") - log.Println(ts) tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0]) at := strings.Split(ts[1], "-") songs = append(songs, Song{