From a638c930cc824b7d1b8335845237cfff258eaba9 Mon Sep 17 00:00:00 2001 From: ashley Date: Tue, 12 Nov 2024 20:07:04 +0000 Subject: [PATCH] should fix channels --- .../init/pages-channel-and-download.js | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 0610f1ca..44d06d7d 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -247,21 +247,25 @@ const xmlData = await fetch(searchUrl) }; const apiUrl = config.invapi + "/channels/"; - const channelUrl = `${apiUrl}${atob( - ChannelTabs.videos - )}/${ID}/?sort_by=${sort_by}${continuation}`; - const shortsUrl = `${apiUrl}${ID}/${atob( - ChannelTabs.shorts - )}?sort_by=${sort_by}${continuations}`; - const streamUrl = `${apiUrl}${ID}/${atob( - ChannelTabs.streams - )}?sort_by=${sort_by}${continuationl}`; - const communityUrl = `${apiUrl}${atob( - ChannelTabs.community - )}/${ID}/?hl=en-US`; - const PlaylistUrl = `${apiUrl}${atob( - ChannelTabs.playlist - )}/${ID}/?hl=en-US`; + const channelUrl = `${apiUrl}${ID}/${atob( + ChannelTabs.videos +)}?sort_by=${sort_by}${continuation}`; + +const shortsUrl = `${apiUrl}${ID}/${atob( + ChannelTabs.shorts +)}?sort_by=${sort_by}${continuation}`; + +const streamUrl = `${apiUrl}${ID}/${atob( + ChannelTabs.streams +)}?sort_by=${sort_by}${continuation}`; + +const communityUrl = `${apiUrl}${ID}/${atob( + ChannelTabs.community +)}?hl=en-US`; + +const playlistUrl = `${apiUrl}${ID}/${atob( + ChannelTabs.playlist +)}?hl=en-US`; const channelINVUrl = `${apiUrl}${ID}/`;