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