From d50e88d1f9a2b39460f9446ed8661bb2e76d69b4 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Thu, 14 Sep 2023 19:45:33 +0300 Subject: [PATCH] fix: use params in cmd... --- yt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt.go b/yt.go index 7f43fdf..5a36ac2 100644 --- a/yt.go +++ b/yt.go @@ -29,7 +29,9 @@ func getYoutubeDownloadURL(link string) (string, error) { params = append(params, ytlinkParams...) } - cmd := exec.Command("yt-dlp", link) + params = append(params, link) + + cmd := exec.Command("yt-dlp", params...) result, err := cmd.Output() if err != nil {