mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-25 17:28:37 +01:00
add lossless proxy url
This commit is contained in:
parent
ca3a2b2b90
commit
77d9a050e9
1 changed files with 10 additions and 4 deletions
|
@ -192,9 +192,9 @@ module.exports = function (app, config, renderTemplate) {
|
|||
}
|
||||
|
||||
const u = await media_proxy(v);
|
||||
|
||||
|
||||
const secure = ["poketube.fun"].includes(req.hostname);
|
||||
const verify = req.hostname === "pt.zzls.xyz";
|
||||
const verify = req.hostname === "poketube.sudovanilla.com";
|
||||
|
||||
core.video(v, contentlang, contentregion).then((data) => {
|
||||
try {
|
||||
|
@ -204,7 +204,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
const inv_comments = data?.comments || "Disabled";
|
||||
const inv_vid = data?.vid;
|
||||
const desc = data?.desc || "";
|
||||
|
||||
|
||||
let d = false;
|
||||
if (desc !== "[object Object]") {
|
||||
d = desc.toString().replace(/\n/g, " <br> ");
|
||||
|
@ -225,6 +225,12 @@ module.exports = function (app, config, renderTemplate) {
|
|||
const reddit = extractInfo(REDDIT_REGEX);
|
||||
const instagram = extractInfo(INSTAGRAM_REGEX);
|
||||
|
||||
var vidurl = u.url
|
||||
|
||||
if(inv_vid.genre === "Music") {
|
||||
var vidurl = u.losslessurl
|
||||
}
|
||||
|
||||
let badges = "";
|
||||
let comments = "";
|
||||
let nnn = "";
|
||||
|
@ -258,7 +264,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
IsOldWindows,
|
||||
channelurlfixer,
|
||||
support,
|
||||
u: u.url,
|
||||
u: vidurl,
|
||||
isvidious: u.isInvidiousURL,
|
||||
video: json,
|
||||
date: k.Video.uploadDate,
|
||||
|
|
Loading…
Reference in a new issue