From 6970f4a718bb46167dd3dcb63f45ff79ff14934a Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 15 Sep 2024 14:49:35 -0500 Subject: [PATCH] Switch vp9 to avc --- downloader.js | 3 ++- static/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/downloader.js b/downloader.js index b503753..70a3f04 100644 --- a/downloader.js +++ b/downloader.js @@ -43,7 +43,8 @@ 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() && (format.videoCodec.includes("vp9") || format.codecs.includes("vp9"))) { + if (format.hasVideo && !format.hasAudio && format.height && format.height.toString() == qualityLabel.toString() && (format.videoCodec.includes("avc1") || format.codecs.includes("avc1"))) { + // console.log(format.videoCodec) videoFormat = format continue } diff --git a/static/index.html b/static/index.html index ddac675..302480d 100644 --- a/static/index.html +++ b/static/index.html @@ -73,7 +73,7 @@

Most recent change

-

Should now only downloading formats with the vp9 format. This means that most software (namely premiere pro) should be compatible with ALL videos. Please let me know if for some reason it fails to downlaod now!!! +

Should now only downloading formats with the avc1 codec. This means that most software (namely premiere pro) should be compatible with ALL videos. Please let me know if for some reason it fails to downlaod now!!!

I first attempted to fix this issue 8 months ago. I have been trying to fix this for 8 months. It was fixed by appending something to an if statement.
I hate my life.

Status of the beta