From badb096f6ee4ab8ee52982d3fb4f6b258d5ee069 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 31 Dec 2022 20:12:12 +0000 Subject: [PATCH] add ambient mode 2.0 --- src/libpoketube/init/pages-video.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 6047abd1..4268aa46 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -160,6 +160,7 @@ module.exports = function (app, config, renderTemplate) { * f = Recent videos from channel * t = Piwik OptOut * q = quality obv + * a = ambient mode */ var v = req.query.v; var e = req.query.e; @@ -167,6 +168,7 @@ module.exports = function (app, config, renderTemplate) { var f = req.query.f; var t = req.query.t; var q = req.query.quality; + var a = req.query.a; const info = await modules.fetch("http://ip-api.com/json/"); const jj = await info.text(); @@ -234,6 +236,7 @@ module.exports = function (app, config, renderTemplate) { video: json, date: k.Video.uploadDate, e, + a, k, secure, process,