Skip to content

Commit

Permalink
Exclude mp4+vp09
Browse files Browse the repository at this point in the history
  • Loading branch information
aandrew-me committed Dec 24, 2023
1 parent 35e5572 commit 6b0f2aa
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ async function getInfo(url) {
if (
format.height <= preferredVideoQuality &&
format.height >= defaultVideoFormat &&
format.video_ext !== "none"
format.video_ext !== "none" &&
!(
format.video_ext === "mp4" &&
format.vcodec.split(".")[0] === "vp09"
)
) {
defaultVideoFormat = format.height;

Expand Down Expand Up @@ -423,7 +427,11 @@ async function getInfo(url) {
if (
format.height == defaultVideoFormat &&
format.vcodec.split(".")[0] === preferredVideoCodec &&
!selected
!selected &&
!(
format.video_ext === "mp4" &&
format.vcodec.split(".")[0] === "vp09"
)
) {
selectedText = " selected ";
selected = true;
Expand All @@ -449,7 +457,11 @@ async function getInfo(url) {

if (
format.video_ext !== "none" &&
format.audio_ext === "none"
format.audio_ext === "none" &&
!(
format.video_ext === "mp4" &&
format.vcodec.split(".")[0] === "vp09"
)
) {
if (size !== i18n.__("Unknown size")) {
size = (Number(size) + 0 || Number(audioSize)).toFixed(
Expand Down

0 comments on commit 6b0f2aa

Please sign in to comment.