mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 05:34:40 -05:00
disable iframe for now
This commit is contained in:
parent
1c726e9b85
commit
4074a0a9d4
1 changed files with 2 additions and 35 deletions
|
@ -34,41 +34,8 @@ const versionnumber = "243";
|
||||||
const relaseunixdate = "MTY4MzU2MzMxNQ==";
|
const relaseunixdate = "MTY4MzU2MzMxNQ==";
|
||||||
|
|
||||||
module.exports = function (app, config, renderTemplate) {
|
module.exports = function (app, config, renderTemplate) {
|
||||||
app.get("/embed/:v", async function (req, res) {
|
app.get("/embed/:v", async function (req, res) {
|
||||||
var e = req.query.e;
|
res.send("Disabled until further notice")
|
||||||
var f = req.query.f;
|
|
||||||
var t = req.query.t;
|
|
||||||
var q = req.query.quality;
|
|
||||||
var v = req.params.v;
|
|
||||||
var type = req.query.type;
|
|
||||||
|
|
||||||
var fetching = await fetcher(v);
|
|
||||||
const video = await modules.fetch(config.tubeApi + `video?v=${v}`);
|
|
||||||
|
|
||||||
const json = fetching.video.Player;
|
|
||||||
const h = await video.text();
|
|
||||||
const k = JSON.parse(modules.toJson(h));
|
|
||||||
const engagement = fetching.engagement;
|
|
||||||
|
|
||||||
if (!v) res.redirect("/");
|
|
||||||
|
|
||||||
//video
|
|
||||||
if (!q) url = `https://tube.kuylar.dev/proxy/media/${v}/22`;
|
|
||||||
if (q === "medium") {
|
|
||||||
var url = `https://tube.kuylar.dev/proxy/media/${v}/18`;
|
|
||||||
}
|
|
||||||
|
|
||||||
renderTemplate(res, req, "poketube-iframe.ejs", {
|
|
||||||
video: json,
|
|
||||||
url: url,
|
|
||||||
sha384: modules.hash,
|
|
||||||
qua: q,
|
|
||||||
engagement: engagement,
|
|
||||||
k: k,
|
|
||||||
type,
|
|
||||||
optout: t,
|
|
||||||
t: config.t_url,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/api/search", async (req, res) => {
|
app.get("/api/search", async (req, res) => {
|
||||||
|
|
Loading…
Reference in a new issue