1
0

It may panic because of this.

This commit is contained in:
Alexander Andreev 2022-03-09 23:49:01 +04:00
parent ceb689e1df
commit 2ec461a90f
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -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],