From 869686a4bb6dd80ab800192bccc8953e56c8ee44 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 14 Oct 2020 22:38:34 +0800 Subject: [PATCH] feat: youtube-dl mp4 format --- lib/engines/youtube-dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/engines/youtube-dl.js b/lib/engines/youtube-dl.js index 35a12cc..fe759f0 100644 --- a/lib/engines/youtube-dl.js +++ b/lib/engines/youtube-dl.js @@ -2,7 +2,7 @@ const { exec } = require('child_process'); const config = require('../config'); module.exports = (options, callback) => { - let op = '--recode-video mp4'; + let op = `-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'`; let path = ''; if (options.path) { path = `downloads/${options.path}/%(title)s-%(id)s.%(ext)s`;