From 1de34b0a4d291665131b5395738f376956e2bbdb Mon Sep 17 00:00:00 2001 From: ashley Date: Mon, 18 Aug 2025 10:25:35 +0200 Subject: [PATCH] Update src/libpoketube/init/pages-channel-and-download.js --- .../init/pages-channel-and-download.js | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 8934ef48..73c3f6ee 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -218,19 +218,6 @@ module.exports = function (app, config, renderTemplate) { const tab = req.query.tab; const cache = {}; - try { - // about - const bout = await fetch(config.tubeApi + `channel?id=${ID}&tab=about`, { - headers: { - 'User-Agent': config.useragent, - }, - }); - const h = await bout.text(); - var boutJson = JSON.parse(modules.toJson(h)); - } catch { - boutJson = " "; - } - const continuation = req.query.continuation ? `&continuation=${req.query.continuation}` : ""; @@ -322,17 +309,16 @@ module.exports = function (app, config, renderTemplate) { stream, c, cinv, - boutJson, + }, timestamp: Date.now(), }; if (cache[ID] && Date.now() - cache[ID].timestamp < 3600000) { - var { tj, shorts, stream, c, boutJson } = cache[ID].result; + var { tj, shorts, stream, c } = cache[ID].result; } const subscribers = convert(cinv?.subCount || 0); - const about = boutJson?.Channel?.Contents?.ItemSection?.About; const description = about?.Description.toString().replace( /\n/g, "
" @@ -349,7 +335,7 @@ module.exports = function (app, config, renderTemplate) { tab, shorts, firstVideo: ChannelFirstVideoObject, - j: boutJson, + j: "", sort: sort_by, stream, tj,