Weir d bug
This commit is contained in:
parent
52e2a3764e
commit
caa513094e
1 changed files with 8 additions and 8 deletions
16
index.js
16
index.js
|
@ -23,16 +23,16 @@ function getThumbor() {
|
||||||
return thumborInstances[thumbCount % thumborInstances.length] + "unsafe"
|
return thumborInstances[thumbCount % thumborInstances.length] + "unsafe"
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getMostRecentVid() {
|
// async function getMostRecentVid() {
|
||||||
innertube = await ytjs.Innertube.create()
|
// innertube = await ytjs.Innertube.create()
|
||||||
var video = await (await (await ytjs.Innertube.create()).getChannel('UChcrBJNJLZucy3TPyGyAY2g'))
|
// var video = await (await (await ytjs.Innertube.create()).getChannel('UChcrBJNJLZucy3TPyGyAY2g'))
|
||||||
video = video.current_tab.content.contents[1].contents[0].content.items[0]
|
// video = video.current_tab.content.contents[1].contents[0].content.items[0]
|
||||||
|
|
||||||
mostRecentVideo = video.endpoint.payload.videoId
|
// mostRecentVideo = video.endpoint.payload.videoId
|
||||||
console.log(mostRecentVideo)
|
// console.log(mostRecentVideo)
|
||||||
}
|
// }
|
||||||
|
|
||||||
getMostRecentVid()
|
// getMostRecentVid()
|
||||||
|
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, () => {
|
||||||
console.log("Violet's Purgatory is now listening on port: " + PORT)
|
console.log("Violet's Purgatory is now listening on port: " + PORT)
|
||||||
|
|
Loading…
Reference in a new issue