change api url :3

This commit is contained in:
Ashley 2023-03-09 15:51:54 +00:00
parent eedbfa5e6d
commit cf0301c902

View file

@ -103,7 +103,7 @@ module.exports = function (app, config, renderTemplate) {
const id = req.query.v; const id = req.query.v;
const l = req.query.h; const l = req.query.h;
let url = `https://tube-srv.ashley143.gay/proxy/caption/${id}/${l}/`; let url = `https://inner-api.poketube.fun/proxy/caption/${id}/${l}/`;
let f = await modules.fetch(url); let f = await modules.fetch(url);
const body = await f.text(); const body = await f.text();
@ -135,7 +135,7 @@ module.exports = function (app, config, renderTemplate) {
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://inv-api.poketube.fun/api/v1/stats") .fetch("https://invid-api.poketube.fun/api/v1/stats")
.then((res) => res.text()) .then((res) => res.text())
.then((txt) => getJson(txt)); .then((txt) => getJson(txt));