mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-15 07:18:19 +01:00
fix download yayaya
This commit is contained in:
parent
4b1765757f
commit
59b746fd1c
1 changed files with 3 additions and 8 deletions
|
@ -98,15 +98,10 @@ app.get("/avatars/:v", async function (req, res) {
|
||||||
app.get("/api/video/download", async function (req, res) {
|
app.get("/api/video/download", async function (req, res) {
|
||||||
var v = req.query.v;
|
var v = req.query.v;
|
||||||
|
|
||||||
var format = "mp4";
|
var q = "18";
|
||||||
var q = "22";
|
|
||||||
if (req.query.q) q = req.query.q;
|
if (req.query.q) q = req.query.q;
|
||||||
|
|
||||||
if (req.query.f) {
|
const url = `https://eu-proxy.poketube.fun/latest_version?id=${v}&itag=${q}&local=true`;
|
||||||
var format = "mp3";
|
|
||||||
}
|
|
||||||
|
|
||||||
const url = `https://tube.kuylar.dev/proxy/media/${v}/${q}`;
|
|
||||||
|
|
||||||
res.redirect(url);
|
res.redirect(url);
|
||||||
});
|
});
|
||||||
|
@ -118,7 +113,7 @@ app.get("/avatars/:v", async function (req, res) {
|
||||||
const l = req.query.h;
|
const l = req.query.h;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let url = `https://kr-proxy.poketube.fun/api/v1/captions/${id}?label=${l}`;
|
let url = `https://eu-proxy.poketube.fun/api/v1/captions/${id}?label=${l}`;
|
||||||
|
|
||||||
let f = await fetch(url);
|
let f = await fetch(url);
|
||||||
const body = await f.text();
|
const body = await f.text();
|
||||||
|
|
Loading…
Reference in a new issue