From 8f28bc4842efd0d2a45e5344675c3b1eb7c4f1d3 Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 3 Jul 2024 08:06:38 +0000 Subject: [PATCH] re-add videos :3 --- src/libpoketube/init/pages-api.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index b7b8ad09..735de0a6 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -181,6 +181,17 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) { } catch {} }); + app.get("/feeds/videos.xml", async (req, res) => { + const id = req.query.channel_id; + + let url = `https://youtube.com/feeds/videos.xml?channel_id=${id}`; + + let f = await modules.fetch(url, { + method: req.method, + }); + + f.body.pipe(res); + }); app.get("/api/redirect", async (req, res) => { const red_url = atob(req.query.u);