mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 17:57:52 +01:00
add media_proxy thingy
This commit is contained in:
parent
a3de3ad08f
commit
8479624a05
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const p = getJson(await playlist.text());
|
const p = getJson(await playlist.text());
|
||||||
var mediaproxy = config.media_proxy;
|
var mediaproxy = config.media_proxy;
|
||||||
|
|
||||||
|
if (req.useragent.source.includes("Pardus")) {
|
||||||
|
var media_proxy = "https://media-proxy.ashley0143.xyz";
|
||||||
|
}
|
||||||
|
|
||||||
renderTemplate(res, req, "playlist.ejs", {
|
renderTemplate(res, req, "playlist.ejs", {
|
||||||
p,
|
p,
|
||||||
mediaproxy,
|
mediaproxy,
|
||||||
|
|
Loading…
Reference in a new issue