It may panic because of this.
This commit is contained in:
parent
ceb689e1df
commit
2ec461a90f
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user