From 637f7c0280e1c27074b4854b7b1841d681043128 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 10 Mar 2022 00:02:44 +0400 Subject: [PATCH] Oh, I found the problem. It's cut command. --- internal/radio/icecast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()