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