mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 13:48:24 +01:00
new proxy !!!!!!!!!!!!!
This commit is contained in:
parent
ba97cbf3ee
commit
7ece06a3b3
1 changed files with 5 additions and 1 deletions
|
@ -17,6 +17,7 @@ const {
|
||||||
getRandomInt,
|
getRandomInt,
|
||||||
getRandomArbitrary,
|
getRandomArbitrary,
|
||||||
} = require("../ptutils/libpt-coreutils.js");
|
} = require("../ptutils/libpt-coreutils.js");
|
||||||
|
const media_proxy = require("../libpoketube-video.js");
|
||||||
|
|
||||||
const sha384 = modules.hash;
|
const sha384 = modules.hash;
|
||||||
const fetch = modules.fetch;
|
const fetch = modules.fetch;
|
||||||
|
@ -181,6 +182,8 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const isvld = await core.isvalidvideo(v);
|
const isvld = await core.isvalidvideo(v);
|
||||||
if (!v) res.redirect("/");
|
if (!v) res.redirect("/");
|
||||||
|
|
||||||
|
const u = await media_proxy(v);
|
||||||
|
|
||||||
var secure;
|
var secure;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -238,11 +241,12 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
if (d === "[object Object]") {
|
if (d === "[object Object]") {
|
||||||
var d = false;
|
var d = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
renderTemplate(res, req, "poketube.ejs", {
|
renderTemplate(res, req, "poketube.ejs", {
|
||||||
color: data.color,
|
color: data.color,
|
||||||
color2: data.color2,
|
color2: data.color2,
|
||||||
engagement: engagement,
|
engagement: engagement,
|
||||||
|
u,
|
||||||
video: json,
|
video: json,
|
||||||
date: k.Video.uploadDate,
|
date: k.Video.uploadDate,
|
||||||
e,
|
e,
|
||||||
|
|
Loading…
Reference in a new issue