This commit is contained in:
Michael Lehmann
2025-06-28 22:56:28 +02:00
parent 6a5bbd5264
commit 91228a0a5e

View File

@@ -19,7 +19,7 @@ func YoutubeVideo(url string) error {
downloadBinary := "yt-dlp" downloadBinary := "yt-dlp"
output := fmt.Sprintf("%s/%%(title)s.%%(ext)s", conf.DownloadPath) output := fmt.Sprintf("%s/%%(title)s.%%(ext)s", conf.DownloadPath)
args := []string{"-S", "filesize~100M", "-f", "'bv+(ba[format_note*=original]/ba)'", "-o", output, url} args := []string{"-S", "filesize~100M", "-f", "bv+(ba[format_note*=original]/ba)", "-o", output, url}
cmd := exec.Command(downloadBinary, args...) cmd := exec.Command(downloadBinary, args...)
fmt.Println(cmd.String()) fmt.Println(cmd.String())