1
0

Debug println.

This commit is contained in:
Alexander Andreev 2022-03-08 03:41:19 +04:00
parent 9628a41a44
commit 1e1d614301
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -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], " - ")