mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 15:34:38 -05:00
whoa cool stuff
This commit is contained in:
parent
d0483d2c73
commit
9ba1da8ae3
1 changed files with 37 additions and 35 deletions
|
@ -194,8 +194,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
req.hostname == "poketube.fun" ||
|
req.hostname == "poketube.fun" ||
|
||||||
req.hostname == "poketube.site" ||
|
req.hostname == "poketube.site" ||
|
||||||
req.hostname == "poketube.online" ||
|
req.hostname == "poketube.online" ||
|
||||||
req.hostname == "poketube.xyz" ||
|
req.hostname == "poketube.xyz"
|
||||||
req.hostname == "watch.poketalebot.com"
|
|
||||||
) {
|
) {
|
||||||
secure = true;
|
secure = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -282,14 +281,14 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
res.redirect("/");
|
res.redirect("/?fromerror=24");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
res.redirect("/");
|
res.redirect("/?fromerror=21");
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
res.redirect("/");
|
return res.redirect("/?fromerror=43");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -458,7 +457,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
if (!song) {
|
if (!song) {
|
||||||
res.redirect(`/watch?v=${v}`);
|
res.redirect(`/watch?v=${v}`);
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
const lyrics = await lyricsFinder(song.artist + song.title);
|
const lyrics = await lyricsFinder(song.artist + song.title);
|
||||||
if (lyrics == undefined)
|
if (lyrics == undefined)
|
||||||
ly = "This Is Where I'd Put The songs lyrics. IF IT HAD ONE ";
|
ly = "This Is Where I'd Put The songs lyrics. IF IT HAD ONE ";
|
||||||
|
@ -490,6 +489,9 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
optout: t,
|
optout: t,
|
||||||
lyrics: ly,
|
lyrics: ly,
|
||||||
});
|
});
|
||||||
|
} catch {
|
||||||
|
return res.redirect("/?fromerror=43");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue