From 1e5d9536afeb1bc0c4852a2908049b78ebc05702 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 10 Dec 2023 09:15:14 +0000 Subject: [PATCH] add new url :3 --- src/libpoketube/init/pages-api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index 723ffdad..4af1471f 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://invidious.snopyta.org/vi/${req.params.v}/${req.params.t}` + var url = `https://yt.sudovanilla.com/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://invidious.snopyta.org/ggpht/${req.params.v}`; + var url = `https://yt.sudovanilla.com/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("/ggpht/:v", async function (req, res) { - var url = `https://invidious.snopyta.org/ggpht/${req.params.v}`; + var url = `https://yt.sudovanilla.com/ggpht/${req.params.v}`; let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method, @@ -84,7 +84,7 @@ app.get("/avatars/:v", async function (req, res) { app.get("/avatars/ytc/:v", async function (req, res) { - var url = `https://invidious.snopyta.org/ggpht/ytc/${req.params.v.replace("ytc", "")}`; + var url = `https://yt.sudovanilla.com/ggpht/ytc/${req.params.v.replace("ytc", "")}`; let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { method: req.method,