add lossless proxy url

This commit is contained in:
Ashley 2023-11-04 08:36:36 +00:00
parent ca3a2b2b90
commit 77d9a050e9

View file

@ -194,7 +194,7 @@ module.exports = function (app, config, renderTemplate) {
const u = await media_proxy(v); const u = await media_proxy(v);
const secure = ["poketube.fun"].includes(req.hostname); 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) => { core.video(v, contentlang, contentregion).then((data) => {
try { try {
@ -225,6 +225,12 @@ module.exports = function (app, config, renderTemplate) {
const reddit = extractInfo(REDDIT_REGEX); const reddit = extractInfo(REDDIT_REGEX);
const instagram = extractInfo(INSTAGRAM_REGEX); const instagram = extractInfo(INSTAGRAM_REGEX);
var vidurl = u.url
if(inv_vid.genre === "Music") {
var vidurl = u.losslessurl
}
let badges = ""; let badges = "";
let comments = ""; let comments = "";
let nnn = ""; let nnn = "";
@ -258,7 +264,7 @@ module.exports = function (app, config, renderTemplate) {
IsOldWindows, IsOldWindows,
channelurlfixer, channelurlfixer,
support, support,
u: u.url, u: vidurl,
isvidious: u.isInvidiousURL, isvidious: u.isInvidiousURL,
video: json, video: json,
date: k.Video.uploadDate, date: k.Video.uploadDate,