1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 08:34:42 -05:00

fix stuff

This commit is contained in:
Ashley //// 2024-02-01 16:49:29 +00:00
parent 403f59d1ba
commit 4a1b5b3d20

View file

@ -340,8 +340,7 @@ module.exports = function (app, config, renderTemplate) {
const { v, e, r, f, t, quality: q } = req.query; const { v, e, r, f, t, quality: q } = req.query;
try { try {
const info = await modules.fetch("http://ip-api.com/json/"); var mediaproxy = config.media_proxy
const ip = await info.json();
const { const {
video: k, video: k,
@ -361,11 +360,13 @@ module.exports = function (app, config, renderTemplate) {
const u = await media_proxy(v); const u = await media_proxy(v);
const d = desc.toString().replace(/\n/g, " <br> "); const d = desc.toString().replace(/\n/g, " <br> ");
const comments = inv_comments || "Disabled"; const comments = inv_comments || "Disabled";
const channel_uploads = data?.channel_uploads
const templateData = { const templateData = {
color, color,
color2, color2,
engagement, engagement,
channel_uploads,
u: u.url, u: u.url,
video: json, video: json,
date: k.Video.uploadDate, date: k.Video.uploadDate,
@ -376,11 +377,12 @@ module.exports = function (app, config, renderTemplate) {
lightOrDark, lightOrDark,
isMobile, isMobile,
tj, tj,
media_proxy_url: mediaproxy,
r, r,
qua: q, qua: q,
isvidious: u.isInvidiousURL, isvidious: u.isInvidiousURL,
inv: comments, inv: comments,
ip, turntomins,
convert, convert,
linkify, linkify,
wiki, wiki,