From 66f249b2f3f25cac32f87b16d81bff3d0ddd1873 Mon Sep 17 00:00:00 2001 From: unknown <89595418+unknownsrc@users.noreply.github.com> Date: Fri, 24 Mar 2023 15:23:10 +0100 Subject: [PATCH] whoops --- utils/metadata.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/metadata.js b/utils/metadata.js index 38c6a11..558f84b 100644 --- a/utils/metadata.js +++ b/utils/metadata.js @@ -39,7 +39,7 @@ async function getChannel(id) { } } -async function getChannelVideos(instance, id) { +async function getChannelVideos(id) { for (let i = 0; i < 5; i++) { const videos = await actualRequest() if (videos) return videos @@ -49,6 +49,7 @@ async function getChannelVideos(instance, id) { try { return new Promise(async (resolve, reject) => { const videos = [] + const instance = await getInstance() const json = await (await fetch(`${instance}/channel/${id}`)).json() videos.push(...json.relatedStreams) if (json.nextpage) await getNextPage(json.nextpage)