api/youtube: rename quality variable in matchQuality
This commit is contained in:
@@ -201,8 +201,8 @@ export default async function(o) {
|
|||||||
const quality = o.quality === "max" ? 9000 : Number(o.quality);
|
const quality = o.quality === "max" ? 9000 : Number(o.quality);
|
||||||
|
|
||||||
const matchQuality = res => {
|
const matchQuality = res => {
|
||||||
const quality = res.height > res.width ? res.width : res.height;
|
const qual = res.height > res.width ? res.width : res.height;
|
||||||
return Math.ceil(quality / 24) * 24;
|
return Math.ceil(qual / 24) * 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
let video, audio, dubbedLanguage,
|
let video, audio, dubbedLanguage,
|
||||||
|
|||||||
Reference in New Issue
Block a user