mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-05 16:24:31 +02:00
api/youtube: fix variable shadowing in normalizeQuality
This commit is contained in:
parent
c88e21d4a8
commit
dec977e34d
@ -211,7 +211,7 @@ export default async function(o) {
|
|||||||
|
|
||||||
const normalizeQuality = res => {
|
const normalizeQuality = res => {
|
||||||
const shortestSide = res.height > res.width ? res.width : res.height;
|
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,
|
let video, audio, dubbedLanguage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user