From 1b2e86f5f894ce8f1b352f48e21c7306e5c814e7 Mon Sep 17 00:00:00 2001 From: ashley Date: Mon, 15 Jul 2024 20:02:58 +0000 Subject: [PATCH] mv --- src/libpoketube/init/pages-channel-and-download.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 5c299066..77cf3c5c 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -230,16 +230,7 @@ module.exports = function (app, config, renderTemplate) { ? `&continuation=${req.query.continuations}` : ""; const sort_by = req.query.sort_by || "newest"; - - const getChannelData = async (url) => { - try { - return await fetch(url) - .then((res) => res.text()) - .then((txt) => getJson(txt)); - } catch (error) { - return null; - } - }; + const getChannelData = async (url) => { try {