mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:58:25 +01:00
add isSchoolProxy
This commit is contained in:
parent
8cc28e7d40
commit
54ba6edffe
1 changed files with 8 additions and 5 deletions
|
@ -240,7 +240,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
var vidurl = u.url;
|
var vidurl = u.url;
|
||||||
var isvidious = u.isInvidiousURL;
|
var isvidious = u.isInvidiousURL;
|
||||||
|
var mediaproxy = config.media_proxy
|
||||||
|
|
||||||
|
|
||||||
if (inv_vid?.genre === "Music") {
|
if (inv_vid?.genre === "Music") {
|
||||||
|
@ -253,8 +253,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.useragent.source.includes("Pardus")) {
|
if (req.useragent.source.includes("Pardus")) {
|
||||||
var vidurl = "https://yt.sudovanilla.com";
|
var vidurl = "https://tube-proxy.ashley0143.xyz";
|
||||||
var isvidious = true;
|
var mediaproxy = "https://media-proxy.ashley0143.xyz"
|
||||||
|
var isvidious = false;
|
||||||
|
var isSchoolProxy = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
let badges = "";
|
let badges = "";
|
||||||
|
@ -301,7 +303,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
twitter,
|
twitter,
|
||||||
k,
|
k,
|
||||||
dm,
|
dm,
|
||||||
media_proxy_url: config.media_proxy,
|
media_proxy_url: mediaproxy,
|
||||||
instagram,
|
instagram,
|
||||||
useragent: req.useragent,
|
useragent: req.useragent,
|
||||||
verify,
|
verify,
|
||||||
|
@ -310,6 +312,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
reddit,
|
reddit,
|
||||||
secure,
|
secure,
|
||||||
process,
|
process,
|
||||||
|
isSchoolProxy,
|
||||||
sha384,
|
sha384,
|
||||||
lightOrDark,
|
lightOrDark,
|
||||||
isMobile: req.useragent.isMobile,
|
isMobile: req.useragent.isMobile,
|
||||||
|
|
Loading…
Reference in a new issue