api/youtube: rename quality variable in matchQuality
Some checks failed
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled

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 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,