mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 10:38:13 +01:00
add ambient mode 2.0
This commit is contained in:
parent
2c731d7869
commit
c2ab97022c
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue