feat: youtube-dl mp4 format
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user