From cd279101177404d1fa42047c068786dcabe4bb47 Mon Sep 17 00:00:00 2001 From: ashley Date: Mon, 15 Jul 2024 20:04:43 +0000 Subject: [PATCH] bwa --- 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 77cf3c5c..5f8820fb 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -262,10 +262,12 @@ const streamUrl = ChannelTabs.streams ? `${apiUrl}${ID}/${atob(ChannelTabs.strea const communityUrl = ChannelTabs.community ? `${apiUrl}${atob(ChannelTabs.community)}/${ID}/?hl=en-US` : null; const PlaylistUrl = ChannelTabs.playlist ? `${apiUrl}${atob(ChannelTabs.playlist)}/${ID}/?hl=en-US` : null; + const fetchData = async (url) => { - return url ? getChannelData(url) : null; + return url ? getChannelData(url) : ""; }; + var [tj, shorts, playlist, stream, c] = await Promise.all([ fetchData(channelUrl), fetchData(shortsUrl),