fix my skill issue

This commit is contained in:
Ashley 2023-11-29 19:22:11 +00:00
parent b24bbd9454
commit d097ee3219

View file

@ -88,12 +88,14 @@ module.exports = function (app, config, renderTemplate) {
});
app.get("/avatars/ytc/:v", async function (req, res) {
const { fetch } = await import("undici");
var url = `https://invid-api.poketube.fun/ggpht/ytc/${req.params.v.replace(
"ytc",
""
)}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
let f = await fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
});