fix some issues :p

This commit is contained in:
Ashley 2022-12-20 08:21:13 +00:00
parent e016ae062a
commit 9281866018

View file

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