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)