change url

This commit is contained in:
ashley 2024-08-31 10:35:22 +00:00
parent 211d0f6305
commit 2bfdb92de1

View file

@ -55,7 +55,7 @@ module.exports = function (app, config, renderTemplate) {
});
app.get("/avatars/:v", async function (req, res) {
var url = `https://iv.ggtyler.dev/ggpht/${req.params.v}`;
var url = `https://vid.puffyan.us/ggpht/${req.params.v}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -65,7 +65,7 @@ app.get("/avatars/:v", async function (req, res) {
});
app.get("/ggpht/:v", async function (req, res) {
var url = `https://iv.ggtyler.dev/ggpht/${req.params.v}`;
var url = `https://vid.puffyan.us/ggpht/${req.params.v}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -76,7 +76,7 @@ app.get("/avatars/:v", async function (req, res) {
app.get("/avatars/ytc/:v", async function (req, res) {
var url = `https://iv.ggtyler.dev/ggpht/ytc/${req.params.v.replace("ytc", "")}`;
var url = `https://vid.puffyan.us/ggpht/ytc/${req.params.v.replace("ytc", "")}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -118,7 +118,7 @@ app.get("/avatars/:v", async function (req, res) {
const l = req.query.h;
try {
let url = `https://iv.ggtyler.dev/api/v1/captions/${id}?label=${l}`;
let url = `https://vid.puffyan.us/api/v1/captions/${id}?label=${l}`;
let f = await fetch(url);
const body = await f.text();