mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-14 05:48:57 +01:00
change optout param :3
This commit is contained in:
parent
71ba4f020c
commit
f1fce8e55f
1 changed files with 3 additions and 6 deletions
|
@ -174,7 +174,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/watch", async (req, res) => {
|
app.get("/watch", async (req, res) => {
|
||||||
const { v, e, r, f, t, quality: q, a, universe } = req.query;
|
const { v, e, r, f, m, quality: q, a, universe } = req.query;
|
||||||
|
|
||||||
if (!v) {
|
if (!v) {
|
||||||
return res.redirect("/");
|
return res.redirect("/");
|
||||||
|
@ -188,10 +188,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const u = await media_proxy(v);
|
const u = await media_proxy(v);
|
||||||
|
|
||||||
const secure = [
|
const secure = [
|
||||||
"poketube.fun",
|
"poketube.fun"
|
||||||
"poketube.site",
|
|
||||||
"poketube.online",
|
|
||||||
"poketube.xyz",
|
|
||||||
].includes(req.hostname);
|
].includes(req.hostname);
|
||||||
const verify = req.hostname === "pt.zzls.xyz";
|
const verify = req.hostname === "pt.zzls.xyz";
|
||||||
|
|
||||||
|
@ -272,7 +269,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
wiki: data.wiki,
|
wiki: data.wiki,
|
||||||
f,
|
f,
|
||||||
t: config.t_url,
|
t: config.t_url,
|
||||||
optout: t,
|
optout: m,
|
||||||
badges,
|
badges,
|
||||||
desc,
|
desc,
|
||||||
comments,
|
comments,
|
||||||
|
|
Loading…
Reference in a new issue