From a4ff42f7b2325159e2b438efbc84d50728354748 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 18 Nov 2023 09:19:29 +0000 Subject: [PATCH] add alot of stuff :3 --- src/libpoketube/init/pages-api.js | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index 70baba46..3c0b55d0 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -29,11 +29,14 @@ function getJson(str) { const pkg = require("../../../package.json"); const cnf = require("../../../config.json"); -const ver = "v23.1311-aMy-MAJOR-stable-nonLTS-git-MTY5OTg5NDg3Mw=="; -const branch = "dev"; -const codename = "amy"; -const versionnumber = "270"; -const relaseunixdate = "MTY5OTg5NDg3Mw=="; +const verfull = "v23.1311-JeSsIcA-MAJOR-stable-dev-nonLTS-git-MTcwMDI5ODc4OQ=="; +const versmol = "v23.1311-JeSsIcA" +const branch = "dev/master"; +const codename = "jessica"; +const versionnumber = "272"; +const relaseunixdate = "MTcwMDI5ODc4OQ== +const updatequote = "Empty your cup so that it may be filled; become devoid to gain totality. - Bruce Lee" + module.exports = function (app, config, renderTemplate) { app.get("/embed/:v", async function (req, res) { @@ -42,12 +45,14 @@ module.exports = function (app, config, renderTemplate) { app.get("/admin", async function (req, res) { if(req.hostname === "poketube.fun") { - res.redirect("https://console.sudovanilla.com/?from=pt_admin") + res.redirect("https://console.sudovanilla.com/") + } else { + res.redirect("/sex") } }); app.get("/vi/:v/:t", async function (req, res) { - var url = `https://vid.theedgeofrage.com/vi/${req.params.v}/${req.params.t}` + var url = `https://inv.vern.cc/vi/${req.params.v}/${req.params.t}` let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method, @@ -58,7 +63,7 @@ module.exports = function (app, config, renderTemplate) { }); app.get("/avatars/:v", async function (req, res) { - var url = `https://vid.theedgeofrage.com/ggpht/${req.params.v}`; + var url = `https://inv.vern.cc/ggpht/${req.params.v}`; let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method, @@ -68,7 +73,7 @@ app.get("/avatars/:v", async function (req, res) { }); app.get("/avatars/ytc/:v", async function (req, res) { - var url = `https://vid.theedgeofrage.com/ggpht/ytc/${req.params.v.replace("ytc", "")}`; + var url = `https://inv.vern.cc/ggpht/ytc/${req.params.v.replace("ytc", "")}`; let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method, @@ -156,8 +161,10 @@ app.get("/avatars/:v", async function (req, res) { .then((txt) => getJson(txt)); const response = { - pt_version: ver, + pt_version: versmol, + pt_version_full: verfull, branch, + updatequote, relaseunixdate, vernum: versionnumber, codename,