fix: use params in cmd...
This commit is contained in:
parent
6e61c39f51
commit
d50e88d1f9
4
yt.go
4
yt.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user