add ambient mode 2.0

This commit is contained in:
Ashley 2022-12-31 20:12:12 +00:00
parent c890eef61b
commit badb096f6e

View file

@ -160,6 +160,7 @@ module.exports = function (app, config, renderTemplate) {
* f = Recent videos from channel * f = Recent videos from channel
* t = Piwik OptOut * t = Piwik OptOut
* q = quality obv * q = quality obv
* a = ambient mode
*/ */
var v = req.query.v; var v = req.query.v;
var e = req.query.e; var e = req.query.e;
@ -167,6 +168,7 @@ module.exports = function (app, config, renderTemplate) {
var f = req.query.f; var f = req.query.f;
var t = req.query.t; var t = req.query.t;
var q = req.query.quality; var q = req.query.quality;
var a = req.query.a;
const info = await modules.fetch("http://ip-api.com/json/"); const info = await modules.fetch("http://ip-api.com/json/");
const jj = await info.text(); const jj = await info.text();
@ -234,6 +236,7 @@ module.exports = function (app, config, renderTemplate) {
video: json, video: json,
date: k.Video.uploadDate, date: k.Video.uploadDate,
e, e,
a,
k, k,
secure, secure,
process, process,