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 {