From c2d41e5d959f1d160d0c80afd39cad6b22f722d2 Mon Sep 17 00:00:00 2001 From: Stein Ivar Berghei Date: Sun, 20 Nov 2022 22:10:27 +0100 Subject: [PATCH] Remove trailing newline from exec.Command --- ytdl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytdl.go b/ytdl.go index 74e915f..c3de3c6 100644 --- a/ytdl.go +++ b/ytdl.go @@ -26,7 +26,7 @@ func NewYTdl(vid string) ([]byte, error) { return nil, err } - return uri, nil + return uri[:len(uri)-1], nil } func DownloadAmbiance(uri string, name string) error {