From ceb9403b32497dc81c59575f8a0affad965d8800 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 15 Sep 2024 02:03:26 -0500 Subject: [PATCH] Force vp9 encoder (Very good) --- downloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader.js b/downloader.js index 977457c..b503753 100644 --- a/downloader.js +++ b/downloader.js @@ -43,7 +43,7 @@ expressManager.app.get("/download", async (req, res) => { while (videoFormat == undefined) { for (let i = 0; i < info.formats.length; i++) { const format = info.formats[i]; - if (format.hasVideo && !format.hasAudio && format.height && format.height.toString() == qualityLabel.toString()) { + if (format.hasVideo && !format.hasAudio && format.height && format.height.toString() == qualityLabel.toString() && (format.videoCodec.includes("vp9") || format.codecs.includes("vp9"))) { videoFormat = format continue }