api/youtube: rename quality variable in matchQuality
This commit is contained in:
parent
3dd6165472
commit
2c451c69d0
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue