1
0

Debugging Icecast.

This commit is contained in:
Alexander Andreev 2022-03-09 23:59:25 +04:00
parent 9c2a2c67bb
commit f756cedae7
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -76,11 +76,10 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song {
}
songs_ := strings.Split(string(out), "\n")
log.Println("songs_ =", len(songs_))
for _, song := range songs_ {
log.Println(song)
ts := strings.Split(song, "|")
log.Println(ts)
tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0])
at := strings.Split(ts[1], "-")
songs = append(songs, Song{