fix: use params in cmd...

This commit is contained in:
HeshamTB 2023-09-14 19:45:33 +03:00
parent 6e61c39f51
commit d50e88d1f9

4
yt.go
View File

@ -29,7 +29,9 @@ func getYoutubeDownloadURL(link string) (string, error) {
params = append(params, ytlinkParams...) params = append(params, ytlinkParams...)
} }
cmd := exec.Command("yt-dlp", link) params = append(params, link)
cmd := exec.Command("yt-dlp", params...)
result, err := cmd.Output() result, err := cmd.Output()
if err != nil { if err != nil {