From dec977e34df1e8e8241200e9b09a243de45a7a85 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 13 Nov 2024 18:45:18 +0600 Subject: [PATCH] api/youtube: fix variable shadowing in `normalizeQuality` --- api/src/processing/services/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js index ea011253..e1b11a62 100644 --- a/api/src/processing/services/youtube.js +++ b/api/src/processing/services/youtube.js @@ -211,7 +211,7 @@ export default async function(o) { const normalizeQuality = res => { 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,