From 2ec461a90f56ecc3814adb3df68a97315b7100fd Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 9 Mar 2022 23:49:01 +0400 Subject: [PATCH] It may panic because of this. --- 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 e54d34f..6e5ed7a 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -81,7 +81,7 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song { log.Println(song) ts := strings.Split(song, "|") tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0]) - at := strings.Split(ts[1], " - ") + at := strings.Split(ts[1], "-") songs = append(songs, Song{ Time: tim.UTC().Format("15:04"), Artist: at[0],