mirror of
https://codeberg.org/ashley/poke
synced 2026-03-03 10:53:44 +00:00
add media_proxy thingy
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user