Weir d bug

This commit is contained in:
Bingus_Violet 2024-02-22 09:15:08 -06:00
parent 52e2a3764e
commit caa513094e

View file

@ -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)