diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index f32e24a..e54d34f 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -3,6 +3,7 @@ package radio import ( "encoding/json" "fmt" + "log" "net/http" "os/exec" "strings" @@ -77,6 +78,7 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song { songs_ := strings.Split(string(out), "\n") for _, song := range songs_ { + log.Println(song) ts := strings.Split(song, "|") tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0]) at := strings.Split(ts[1], " - ")