From 4d634603e2b3f620da70f9b38ead9f58e25f4354 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 23 Dec 2024 23:34:05 +0600 Subject: [PATCH] api/youtube: fix variable shadowing oops --- api/src/processing/services/youtube.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js index cb18aa06..6559978c 100644 --- a/api/src/processing/services/youtube.js +++ b/api/src/processing/services/youtube.js @@ -68,7 +68,7 @@ const cloneInnertube = async (customFetch) => { const shouldRefreshPlayer = lastRefreshedAt + PLAYER_REFRESH_PERIOD < new Date(); const rawCookie = getCookie('youtube'); - const cookieValues = rawCookie?.values(); + const rawCookieValues = rawCookie?.values(); const cookie = rawCookie?.toString(); if (!innertube || shouldRefreshPlayer) { @@ -76,8 +76,8 @@ const cloneInnertube = async (customFetch) => { fetch: customFetch, retrieve_player: !!cookie, cookie, - po_token: cookieValues?.po_token, - visitor_data: cookieValues?.visitor_data, + po_token: rawCookieValues?.po_token, + visitor_data: rawCookieValues?.visitor_data, }); lastRefreshedAt = +new Date(); }