feat: youtube-dl mp4 format

This commit is contained in:
DIYgod
2020-10-14 22:38:34 +08:00
parent 0a79c420ee
commit 869686a4bb
+1 -1
View File
@@ -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`;