From 5715ecdb9644535197b7185148e9a356bb680001 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 25 Sep 2022 18:04:25 +0200 Subject: [PATCH] continuations!!! --- server.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 317b3117..682a931f 100644 --- a/server.js +++ b/server.js @@ -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();