From c4ea8aef8cc28703df128e211a9dce8ef51562bf Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 10 Mar 2022 00:06:09 +0400 Subject: [PATCH] Debug Icecast. --- 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 53b0cb7..8a10b3d 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -76,10 +76,10 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song { } songs_ := strings.Split(string(out), "\n") - log.Println("songs_ =", len(songs_), songs_[0]) for _, song := range songs_ { ts := strings.Split(song, "|") + log.Println(len(ts), ts) tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0]) at := strings.Split(ts[1], "-") songs = append(songs, Song{