mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:17:47 +01:00
fix some issues :p
This commit is contained in:
parent
814e894ba3
commit
2bff8eb46f
1 changed files with 65 additions and 56 deletions
|
@ -260,11 +260,14 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
if (isvld) {
|
if (isvld) {
|
||||||
core.video(v).then((data) => {
|
core.video(v).then((data) => {
|
||||||
|
if (data) {
|
||||||
|
if (data.video) {
|
||||||
const k = data.video;
|
const k = data.video;
|
||||||
const json = data.json;
|
const json = data.json;
|
||||||
const engagement = data.engagement;
|
const engagement = data.engagement;
|
||||||
var inv_comments = data.comments;
|
var inv_comments = data.comments;
|
||||||
const inv_vid = data.vid;
|
const inv_vid = data.vid;
|
||||||
|
if (json) {
|
||||||
if (json.Title) {
|
if (json.Title) {
|
||||||
if (!data.comments) inv_comments = "Disabled";
|
if (!data.comments) inv_comments = "Disabled";
|
||||||
|
|
||||||
|
@ -319,12 +322,18 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
lyrics: "",
|
lyrics: "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
res.redirect("/");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
res.redirect("/");
|
res.redirect("/");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
app.get("/music", async function (req, res) {
|
app.get("/music", async function (req, res) {
|
||||||
/*
|
/*
|
||||||
* QUERYS
|
* QUERYS
|
||||||
|
|
Loading…
Reference in a new issue