From b47f66773ba3d861ed7d14ed933af8c868e7b65f Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 18 May 2024 11:13:17 +0000 Subject: [PATCH] Fix search --- src/libpoketube/init/pages-channel-and-download.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index a10f73b6..a31c1dca 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -190,13 +190,14 @@ module.exports = function (app, config, renderTemplate) { const { fetch } = await import("undici"); const search = await fetch( - `https://4get.sudovanilla.com/api/v1/web?s=${query}` + `https://4get.sudovanilla.org/api/v1/web?s=${query}` ); const web = getJson(await search.text()); if (req.query.lucky === "true") { res.redirect("/im-feeling-lucky?query=" + query); } + var uaos = req.useragent.os; var IsOldWindows; @@ -268,6 +269,7 @@ module.exports = function (app, config, renderTemplate) { if (ID.endsWith("@poketube.fun")) { ID = ID.slice(0, -"@poketube.fun".length); } + const tab = req.query.tab; const cache = {};