bump version owo

This commit is contained in:
Ashley 2023-09-09 16:58:37 +00:00
parent 44e0dcdc93
commit 4aaf3fcf78

View file

@ -27,15 +27,15 @@ function getJson(str) {
} }
const pkg = require("../../../package.json"); const pkg = require("../../../package.json");
const ver = "v23.0206-aStfl-MAJOR-stable-nonLTS-git-MTY4MzU2MzMxNQ=="; const ver = "v23.0909-aStfl-MAJOR-stable-nonLTS-git-MTY4MzU2MzMxNQ==";
const branch = "master"; const branch = "master";
const codename = "astolfo-2"; const codename = "astolfo-3";
const versionnumber = "244"; const versionnumber = "245";
const relaseunixdate = "MTY4NTcxNzAzOQ=="; const relaseunixdate = "MTY4NTcxNzAzOQ==";
module.exports = function (app, config, renderTemplate) { module.exports = function (app, config, renderTemplate) {
app.get("/embed/:v", async function (req, res) { app.get("/embed/:v", async function (req, res) {
res.send("Disabled until further notice") res.send("Disabled until further notice");
}); });
app.get("/api/search", async (req, res) => { app.get("/api/search", async (req, res) => {
@ -68,17 +68,13 @@ module.exports = function (app, config, renderTemplate) {
const l = req.query.h; const l = req.query.h;
try { try {
let url = `https://invid-api.poketube.fun/api/v1/captions/${id}?label=${l}`; let url = `https://invid-api.poketube.fun/api/v1/captions/${id}?label=${l}`;
let f = await modules.fetch(url); let f = await modules.fetch(url);
const body = await f.text(); const body = await f.text();
res.send(body); res.send(body);
} catch {}
} catch {
}
}); });
app.get("/feeds/videos.xml", async (req, res) => { app.get("/feeds/videos.xml", async (req, res) => {
@ -103,6 +99,14 @@ module.exports = function (app, config, renderTemplate) {
res.redirect(red_url + "?f=" + req.query.u); res.redirect(red_url + "?f=" + req.query.u);
}); });
app.get("/api", async (req, res) => {
res.redirect("/api/version.json");
});
app.get("/api/v1", async (req, res) => {
res.redirect("https://invid-api.poketube.fun/api/v1/stats");
});
app.get("/api/version.json", async (req, res) => { app.get("/api/version.json", async (req, res) => {
const invidious = await modules const invidious = await modules
.fetch("https://invid-api.poketube.fun/api/v1/stats") .fetch("https://invid-api.poketube.fun/api/v1/stats")
@ -129,7 +133,7 @@ module.exports = function (app, config, renderTemplate) {
piwik: "master", piwik: "master",
process: process.versions, process: process.versions,
dependencies: pkg.dependencies, dependencies: pkg.dependencies,
poketubeapicode: btoa(Date.now() + invidious.software.version) poketubeapicode: btoa(Date.now() + invidious.software.version),
}; };
res.json(response); res.json(response);