mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 21:37:48 +01:00
add ggpht
This commit is contained in:
parent
ab4b168d44
commit
e8ea4bcf67
1 changed files with 11 additions and 0 deletions
|
@ -72,6 +72,17 @@ app.get("/avatars/:v", async function (req, res) {
|
|||
f.body.pipe(res);
|
||||
});
|
||||
|
||||
app.get("/ggpht/:v", async function (req, res) {
|
||||
var url = `https://invid-api.poketube.fun/ggpht/${req.params.v}`;
|
||||
|
||||
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
|
||||
method: req.method,
|
||||
});
|
||||
|
||||
f.body.pipe(res);
|
||||
});
|
||||
|
||||
|
||||
app.get("/avatars/ytc/:v", async function (req, res) {
|
||||
var url = `https://invid-api.poketube.fun/ggpht/ytc/${req.params.v.replace("ytc", "")}`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue