blob: c0cf6cb7eef0168a5f79c944625d9862aa76c7c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package yt
import (
"fmt"
"os/exec"
)
func RunYtDlpProcess(link string, output string) {
output_template := fmt.Sprintf("%s/%%(title)s.%%(ext)s", output)
downloaded_txt := fmt.Sprintf("%s/downloaded.txt", output)
cmd := exec.Command("yt-dlp", link, "-o", output_template, "--download-archive", downloaded_txt)
cmd.Run()
}
|