api/youtube: add missing else to adaptive codec fallback

This commit is contained in:
wukko 2024-11-13 22:23:45 +06:00
parent 225a721805
commit 3fe2bd3b7c
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -344,7 +344,7 @@ export default async function(o) {
if (noBestMedia()) {
if (codec === "av1") codec = "vp9";
if (codec === "vp9") codec = "av1";
else if (codec === "vp9") codec = "av1";
// if there's no higher quality fallback, then use h264
if (noBestMedia()) codec = "h264";