From 278325fb44b98f72a64530b5b028297a71d3fbd0 Mon Sep 17 00:00:00 2001 From: localhost Date: Wed, 4 Oct 2023 15:21:50 +0200 Subject: [PATCH] adding format options + removing file size limit --- utils/ytdlp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ytdlp.js b/utils/ytdlp.js index 61c1735..502db58 100644 --- a/utils/ytdlp.js +++ b/utils/ytdlp.js @@ -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()