trim filenames

This commit is contained in:
Ronnie 2024-11-14 20:27:26 -08:00 committed by GitHub
parent 8ade52606d
commit 8ff36ca84d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,6 +128,7 @@ func downloadMedia(url string) (string, string, error) {
cmd := exec.Command("yt-dlp", cmd := exec.Command("yt-dlp",
"--format", "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best", "--format", "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best",
"--merge-output-format", "mp4", "--merge-output-format", "mp4",
"--trim-filenames", "200",
"--restrict-filenames", "--restrict-filenames",
"--write-info-json", "--write-info-json",
"--verbose", "--verbose",