api/youtube: fix variable shadowing in normalizeQuality

This commit is contained in:
wukko 2024-11-13 18:45:18 +06:00
parent c88e21d4a8
commit dec977e34d
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -211,7 +211,7 @@ export default async function(o) {
const normalizeQuality = res => {
const shortestSide = res.height > res.width ? res.width : res.height;
return videoQualities.find(quality => quality >= shortestSide);
return videoQualities.find(qual => qual >= shortestSide);
}
let video, audio, dubbedLanguage,