continuations!!!

This commit is contained in:
Ashley 2022-09-25 18:04:25 +02:00
parent 6cd23bead5
commit 73a844b7bf

View file

@ -459,8 +459,17 @@ app.get("/old/watch", async function (req, res) {
app.get("/search", async (req, res) => {
const { toJson } = require("xml2json");
const query = req.query.query;
if(req.query.continuation){
var continuation = req.query.continuation
}
if(!req.query.continuation){
var continuation = ""
}
const search = await fetch(
`https://tube.kuylar.dev/api/search?query=${query}`
`https://tube.kuylar.dev/api/search?query=${query}&continuation=${continuation}`
);
const text = await search.text();