From caa513094e26763b16a52595923d820119eca012 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 22 Feb 2024 09:15:08 -0600 Subject: [PATCH] Weir d bug --- index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index a0e931c..f27f621 100644 --- a/index.js +++ b/index.js @@ -23,16 +23,16 @@ function getThumbor() { return thumborInstances[thumbCount % thumborInstances.length] + "unsafe" } -async function getMostRecentVid() { - innertube = await ytjs.Innertube.create() - var video = await (await (await ytjs.Innertube.create()).getChannel('UChcrBJNJLZucy3TPyGyAY2g')) - video = video.current_tab.content.contents[1].contents[0].content.items[0] +// async function getMostRecentVid() { +// innertube = await ytjs.Innertube.create() +// var video = await (await (await ytjs.Innertube.create()).getChannel('UChcrBJNJLZucy3TPyGyAY2g')) +// video = video.current_tab.content.contents[1].contents[0].content.items[0] - mostRecentVideo = video.endpoint.payload.videoId - console.log(mostRecentVideo) -} +// mostRecentVideo = video.endpoint.payload.videoId +// console.log(mostRecentVideo) +// } -getMostRecentVid() +// getMostRecentVid() app.listen(PORT, () => { console.log("Violet's Purgatory is now listening on port: " + PORT)