mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 07:38:24 +01:00
fix stuff
This commit is contained in:
parent
403f59d1ba
commit
4a1b5b3d20
1 changed files with 6 additions and 4 deletions
|
@ -340,8 +340,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
const { v, e, r, f, t, quality: q } = req.query;
|
||||
|
||||
try {
|
||||
const info = await modules.fetch("http://ip-api.com/json/");
|
||||
const ip = await info.json();
|
||||
var mediaproxy = config.media_proxy
|
||||
|
||||
const {
|
||||
video: k,
|
||||
|
@ -361,11 +360,13 @@ module.exports = function (app, config, renderTemplate) {
|
|||
const u = await media_proxy(v);
|
||||
const d = desc.toString().replace(/\n/g, " <br> ");
|
||||
const comments = inv_comments || "Disabled";
|
||||
|
||||
const channel_uploads = data?.channel_uploads
|
||||
|
||||
const templateData = {
|
||||
color,
|
||||
color2,
|
||||
engagement,
|
||||
channel_uploads,
|
||||
u: u.url,
|
||||
video: json,
|
||||
date: k.Video.uploadDate,
|
||||
|
@ -376,11 +377,12 @@ module.exports = function (app, config, renderTemplate) {
|
|||
lightOrDark,
|
||||
isMobile,
|
||||
tj,
|
||||
media_proxy_url: mediaproxy,
|
||||
r,
|
||||
qua: q,
|
||||
isvidious: u.isInvidiousURL,
|
||||
inv: comments,
|
||||
ip,
|
||||
turntomins,
|
||||
convert,
|
||||
linkify,
|
||||
wiki,
|
||||
|
|
Loading…
Reference in a new issue