adding format options + removing file size limit

This commit is contained in:
localhost 2023-10-04 15:21:50 +02:00
parent 6febdab673
commit 278325fb44
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ const logger = require('./logger.js')
async function downloadVideo(url) {
return new Promise((resolve, reject) => {
const child = child_process.spawn("../yt-dlp", ["--max-filesize=2G", url], {cwd: 'videos', shell: false})
const child = child_process.spawn("../yt-dlp", [url, ' -f 248+250/22/18/17'], {cwd: 'videos', shell: false})
child.stdout.on("data", data => {
const msg = data.toString().trim()