1
Fork 0

fix some issues :p

This commit is contained in:
Ashley 2022-12-20 08:21:13 +00:00
parent 814e894ba3
commit 2bff8eb46f

View file

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