From 2c451c69d0612fedc734d29ce1869515b53ec9e0 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 31 Oct 2024 21:43:02 +0600 Subject: [PATCH] api/youtube: rename quality variable in `matchQuality` --- api/src/processing/services/youtube.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js index 67a47326..005c3ed5 100644 --- a/api/src/processing/services/youtube.js +++ b/api/src/processing/services/youtube.js @@ -201,8 +201,8 @@ export default async function(o) { const quality = o.quality === "max" ? 9000 : Number(o.quality); const matchQuality = res => { - const quality = res.height > res.width ? res.width : res.height; - return Math.ceil(quality / 24) * 24; + const qual = res.height > res.width ? res.width : res.height; + return Math.ceil(qual / 24) * 24; } let video, audio, dubbedLanguage,