From f0a88cfe076c5e4758d09516e10fe84975e16d00 Mon Sep 17 00:00:00 2001 From: localhost Date: Thu, 4 Apr 2024 22:23:13 +0200 Subject: [PATCH] stupid --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d541f3b..42c97b3 100644 --- a/index.js +++ b/index.js @@ -46,7 +46,7 @@ app.get('/channel/:id', async (req, res) => { try { const platform = platforms[retries % platforms.length]; const yt = await Innertube.create(); - const info = await yt.getChannel(id, platform); + const info = await yt.getChannel(req.params.id, platform); if (!info) { error = 'ErrorCantConnectToServiceAPI' @@ -65,7 +65,7 @@ app.get('/videos/:id', async (req, res) => { try { const videos = []; const yt = await Innertube.create(); - const channel = await yt.getChannel(id); + const channel = await yt.getChannel(req.params.id); let json = await channel.getVideos(); videos.push(...json.videos);