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`;