From ab4b168d442014c2e6b4d4d2ec25e6488436d3c2 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 19 Nov 2023 09:24:57 +0000 Subject: [PATCH] use invid-api instead --- src/libpoketube/init/pages-api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index 3163d4a5..9b3ecf6f 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -52,7 +52,7 @@ module.exports = function (app, config, renderTemplate) { }); app.get("/vi/:v/:t", async function (req, res) { - var url = `https://inv.vern.cc/vi/${req.params.v}/${req.params.t}` + var url = `https://invid-api.poketube.fun/vi/${req.params.v}/${req.params.t}` let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method, @@ -63,7 +63,7 @@ module.exports = function (app, config, renderTemplate) { }); app.get("/avatars/:v", async function (req, res) { - var url = `https://inv.vern.cc/ggpht/${req.params.v}`; + var url = `https://invid-api.poketube.fun/ggpht/${req.params.v}`; let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method, @@ -73,7 +73,7 @@ app.get("/avatars/:v", async function (req, res) { }); app.get("/avatars/ytc/:v", async function (req, res) { - var url = `https://inv.vern.cc/ggpht/ytc/${req.params.v.replace("ytc", "")}`; + var url = `https://invid-api.poketube.fun/ggpht/ytc/${req.params.v.replace("ytc", "")}`; let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method,