mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 04:57:48 +01:00
hm
This commit is contained in:
parent
cd27910117
commit
e01174182c
1 changed files with 15 additions and 13 deletions
|
@ -317,21 +317,23 @@ var [tj, shorts, playlist, stream, c] = await Promise.all([
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (tj) {
|
||||||
if (continuation) {
|
if (continuation) {
|
||||||
const currentAuthorId = String(cinv.authorId).trim();
|
const currentAuthorId = String(cinv.authorId).trim();
|
||||||
const firstVideoAuthorId = String(tj.videos[0].authorId).trim();
|
const firstVideoAuthorId = String(tj.videos[0].authorId).trim();
|
||||||
|
|
||||||
if (currentAuthorId.localeCompare(firstVideoAuthorId) !== 0) {
|
if (currentAuthorId.localeCompare(firstVideoAuthorId) !== 0) {
|
||||||
res.status(400).send("Continuation does not match the channel :c");
|
res.status(400).send("Continuation does not match the channel :c");
|
||||||
|
return; // Exit the function after sending the response
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ChannelFirstVideoObject = await fetch(
|
var ChannelFirstVideoObject = await fetch(
|
||||||
`${config.invapi}/videos/${tj.videos[0].videoId}`
|
`${config.invapi}/videos/${tj.videos[0].videoId}`
|
||||||
)
|
)
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then((txt) => getJson(txt));
|
.then((txt) => getJson(txt));
|
||||||
|
}
|
||||||
|
|
||||||
renderTemplate(res, req, "channel.ejs", {
|
renderTemplate(res, req, "channel.ejs", {
|
||||||
ID,
|
ID,
|
||||||
|
|
Loading…
Reference in a new issue