From 5aa00f88ea93ea58eb3ba6f453ce57e0d2ef553c Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 22 Feb 2023 16:10:47 +0000 Subject: [PATCH] hehe try catch --- src/libpoketube/init/pages-channel-and-download.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 484ba38b..94358df2 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -135,6 +135,8 @@ module.exports = function (app, config, renderTemplate) { k = " "; } + try { + // continuation stuff - whoa cool let continuation = req.query.continuation ? `&continuation=${req.query.continuation}` : ""; let continuationl = req.query.continuationl ? `&continuation=${req.query.continuationl}` : ""; @@ -150,7 +152,6 @@ module.exports = function (app, config, renderTemplate) { // community tab - protobuf Egljb21tdW5pdHk%3D const c = await modules.fetch(`https://inv.zzls.xyz/api/v1/channels/community/${ID}/`).then((res) => res.text()) .then((txt) => getJson(txt)); - try { const summary = await wiki.summary(k.Channel.Metadata.Name); var w = ""; @@ -202,6 +203,6 @@ module.exports = function (app, config, renderTemplate) { }); } catch { res.redirect("/"); - } + } }); };