diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 65dee22..53b0cb7 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -67,7 +67,7 @@ func (is *IcecastStatusDTO) Song() string { func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) []Song { songs := make([]Song, 0) - cmd := fmt.Sprintf("tail -n%d %s | head -n-1 | cut -d\" | \" -f1,4", lastNSongs+1, playlistPath) + cmd := fmt.Sprintf("tail -n%d %s | head -n-1 | cut -d\"|\" -f1,4", lastNSongs+1, playlistPath) o := exec.Command("bash", "-c", cmd) out, _ := o.CombinedOutput()