Debug Icecast.
This commit is contained in:
parent
637f7c0280
commit
c4ea8aef8c
@ -76,10 +76,10 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song {
|
||||
}
|
||||
|
||||
songs_ := strings.Split(string(out), "\n")
|
||||
log.Println("songs_ =", len(songs_), songs_[0])
|
||||
|
||||
for _, song := range songs_ {
|
||||
ts := strings.Split(song, "|")
|
||||
log.Println(len(ts), ts)
|
||||
tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0])
|
||||
at := strings.Split(ts[1], "-")
|
||||
songs = append(songs, Song{
|
||||
|
Loading…
Reference in New Issue
Block a user