From 54ba6edffe7f99196eae1a5f161d75a4aa149c28 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 5 Jan 2024 16:16:08 +0000 Subject: [PATCH] add isSchoolProxy --- src/libpoketube/init/pages-video.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 8367fc36..71c216a9 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -240,9 +240,9 @@ module.exports = function (app, config, renderTemplate) { var vidurl = u.url; var isvidious = u.isInvidiousURL; - + var mediaproxy = config.media_proxy - + if (inv_vid?.genre === "Music") { var vidurl = u.losslessurl; } @@ -253,8 +253,10 @@ module.exports = function (app, config, renderTemplate) { } if (req.useragent.source.includes("Pardus")) { - var vidurl = "https://yt.sudovanilla.com"; - var isvidious = true; + var vidurl = "https://tube-proxy.ashley0143.xyz"; + var mediaproxy = "https://media-proxy.ashley0143.xyz" + var isvidious = false; + var isSchoolProxy = true; } let badges = ""; @@ -301,7 +303,7 @@ module.exports = function (app, config, renderTemplate) { twitter, k, dm, - media_proxy_url: config.media_proxy, + media_proxy_url: mediaproxy, instagram, useragent: req.useragent, verify, @@ -310,6 +312,7 @@ module.exports = function (app, config, renderTemplate) { reddit, secure, process, + isSchoolProxy, sha384, lightOrDark, isMobile: req.useragent.isMobile,