From 0a23218c456a521c246aa914547ad66da064bd15 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 8 Jun 2022 21:31:44 +0300 Subject: [PATCH] more stuff --- server.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 2ba38708..65cbf9a6 100644 --- a/server.js +++ b/server.js @@ -81,7 +81,6 @@ app.get("/", function (req, res) { app.get("/channel", async (req, res) => { const ID = req.query.id; const { toJson } = require("xml2json"); - const bout = await fetch( `https://lighttube.herokuapp.com/api/channel?id=${ID}&tab=about` ); @@ -92,7 +91,8 @@ app.get("/channel", async (req, res) => { ID:ID, j:k, about:k.Channel.Contents.ItemSection.About, - subs:typeof subscribers === 'string' ? subscribers.replace('subscribers', '') : 'Private' + subs:typeof subscribers === 'string' ? subscribers.replace('subscribers', '') : 'Private', + desc:k.Channel.Contents.ItemSection.About.Description });}); app.get("/privacy", function (req, res) { renderTemplate(res, req, "priv.ejs"); @@ -117,7 +117,6 @@ app.get("/search", async (req, res) => { const search = await fetch( `https://lighttube.herokuapp.com/api/search?query=${query}` ); - const text = await search.text(); const j = JSON.parse(toJson(text)); if (!query) {