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 }