mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 22:57:54 +01:00
add universe 12 :3
This commit is contained in:
parent
3b726c3904
commit
60bee14c8a
1 changed files with 13 additions and 0 deletions
|
@ -70,6 +70,19 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
app.get("/search", async (req, res) => {
|
app.get("/search", async (req, res) => {
|
||||||
const query = req.query.query;
|
const query = req.query.query;
|
||||||
|
|
||||||
|
const poketube_universe_value = "poketube_smart_search"
|
||||||
|
|
||||||
|
if(query.includes("youtube.com")){
|
||||||
|
try {
|
||||||
|
var videoid = query.split("v=")
|
||||||
|
|
||||||
|
res.redirect("/watch?v=" + videoid[1])
|
||||||
|
} catch {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (!query) {
|
if (!query) {
|
||||||
return res.redirect("/");
|
return res.redirect("/");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue