From 86f8bc8fb20eb40a4664a3381b877e4dfec64f18 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Wed, 27 Mar 2024 16:11:02 +0000 Subject: [PATCH] use config.invidapi instead --- src/libpoketube/init/pages-channel-and-download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index ea1e655f..bc8b6089 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -136,7 +136,7 @@ module.exports = function (app, config, renderTemplate) { const headers = {}; const xmlData = await fetch( - `https://invid-api.poketube.fun/api/v1/search?q=${encodeURIComponent( + `https://${config_invapi}/search?q=${encodeURIComponent( query )}&page=${encodeURIComponent( continuation @@ -288,7 +288,7 @@ module.exports = function (app, config, renderTemplate) { } }; - const apiUrl = "https://invid-api.poketube.fun/api/v1/channels/"; + const apiUrl = config_invapi + "/channels/"; const channelUrl = `${apiUrl}${atob( ChannelTabs.videos )}/${ID}/?sort_by=${sort_by}${continuation}`;