Fix
This commit is contained in:
parent
a7ac7e7337
commit
795b8c849c
1 changed files with 2 additions and 2 deletions
|
|
@ -130,12 +130,12 @@ func downloadMedia(url string) (string, string, error) {
|
|||
id := GetMD5Hash(url)
|
||||
name := getMediaDirectory(id) + "%(id)s.%(ext)s"
|
||||
|
||||
log.Info().Msgf("Downloading %s to %s", url, id)
|
||||
log.Info().Msgf("Downloading %s to %s", url, name)
|
||||
|
||||
cmd := exec.Command("yt-dlp",
|
||||
"--format", "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best",
|
||||
"--merge-output-format", "mp4",
|
||||
"--trim-filenames", "40",
|
||||
"--trim-filenames", "100",
|
||||
"--restrict-filenames",
|
||||
"--write-info-json",
|
||||
"--verbose",
|
||||
|
|
|
|||
Loading…
Reference in a new issue