From e5ae26293cdc1996be6218725090f42041239eaa Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 23 Oct 2023 15:05:33 +0000 Subject: [PATCH] add mobile download page :3 --- src/libpoketube/init/pages-channel-and-download.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index db07674c..98a718ba 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -47,12 +47,13 @@ module.exports = function (app, config, renderTemplate) { color: await modules .getColors(`https://i.ytimg.com/vi/${v}/maxresdefault.jpg`) .then((colors) => colors[0].hex()), + isMobile: req.useragent.isMobile, }); } catch { res.redirect("/"); } }); - + app.get("/old/watch", async function (req, res) { var v = req.query.v; var e = req.query.e;