From 8479624a057c2ec0010a199ca7608744ff508440 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Fri, 8 Mar 2024 04:23:31 +0000 Subject: [PATCH] add media_proxy thingy --- src/libpoketube/init/pages-static.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libpoketube/init/pages-static.js b/src/libpoketube/init/pages-static.js index ed01ddf4..cb4a6130 100644 --- a/src/libpoketube/init/pages-static.js +++ b/src/libpoketube/init/pages-static.js @@ -127,6 +127,10 @@ module.exports = function (app, config, renderTemplate) { const p = getJson(await playlist.text()); var mediaproxy = config.media_proxy; + if (req.useragent.source.includes("Pardus")) { + var media_proxy = "https://media-proxy.ashley0143.xyz"; + } + renderTemplate(res, req, "playlist.ejs", { p, mediaproxy,