api/youtube: rename quality variable in matchQuality

This commit is contained in:
wukko 2024-10-31 21:43:02 +06:00
parent 3dd6165472
commit 2c451c69d0
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -201,8 +201,8 @@ export default async function(o) {
const quality = o.quality === "max" ? 9000 : Number(o.quality);
const matchQuality = res => {
const quality = res.height > res.width ? res.width : res.height;
return Math.ceil(quality / 24) * 24;
const qual = res.height > res.width ? res.width : res.height;
return Math.ceil(qual / 24) * 24;
}
let video, audio, dubbedLanguage,