From cdebcd92a05c8e52c808d4321d08d06108128623 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sat, 10 Sep 2022 09:34:57 +0200 Subject: [PATCH] Merge output format to mp4/webm/mov --- utils/videos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/videos.js b/utils/videos.js index 9c803f49..0a9ca396 100644 --- a/utils/videos.js +++ b/utils/videos.js @@ -10,7 +10,7 @@ export default { }; async function downloadVideo(urlArg, output, format = 'bestvideo*+bestaudio/best') { await new Promise((resolve, reject) => { - exec(`./bin/yt-dlp -f ${format} "${urlArg}" -o "${os.tmpdir()}/${output}.%(ext)s" --force-overwrites --no-playlist`, (err, stdout, stderr) => { + exec(`./bin/yt-dlp -f ${format} "${urlArg}" -o "${os.tmpdir()}/${output}.%(ext)s" --force-overwrites --no-playlist --merge-output-format=mp4/webm/mov`, (err, stdout, stderr) => { if (err) { reject(stderr); }