mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 06:28:55 +01:00
download owo
This commit is contained in:
parent
dfe7e0868f
commit
a0b0f1c33c
1 changed files with 6 additions and 2 deletions
|
@ -330,8 +330,12 @@ app.get("/", 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 fetching = await fetcher(v);
|
var fetching = await fetcher(v);
|
||||||
const url = fetching.video.Player.Formats.Format[1].URL;
|
|
||||||
res.redirect(url);
|
const json = fetching.video.Player;
|
||||||
|
|
||||||
|
const url = `https://tube.kuylar.dev/proxy/download/${v}/22/${json.title}.mp4`
|
||||||
|
|
||||||
|
res.redirect(url)
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/api/video/downloadjson", async function (req, res) {
|
app.get("/api/video/downloadjson", async function (req, res) {
|
||||||
|
|
Loading…
Reference in a new issue