Debug println.
This commit is contained in:
parent
9628a41a44
commit
1e1d614301
@ -3,6 +3,7 @@ package radio
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"os/exec"
|
||||
"strings"
|
||||
@ -77,6 +78,7 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song {
|
||||
songs_ := strings.Split(string(out), "\n")
|
||||
|
||||
for _, song := range songs_ {
|
||||
log.Println(song)
|
||||
ts := strings.Split(song, "|")
|
||||
tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0])
|
||||
at := strings.Split(ts[1], " - ")
|
||||
|
Loading…
Reference in New Issue
Block a user