mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 21:29:04 +01:00
remove lighttube proxy
This commit is contained in:
parent
9ff773a6f1
commit
7006c494e7
1 changed files with 13 additions and 2 deletions
|
@ -197,9 +197,20 @@ app.get("/watch", async function (req, res) {
|
||||||
if (!v) res.redirect("/");
|
if (!v) res.redirect("/");
|
||||||
|
|
||||||
//video
|
//video
|
||||||
if (!q) url = `https://tube.kuylar.dev/proxy/media/${v}/22`;
|
|
||||||
|
var u = inv_vid.formatStreams;
|
||||||
|
|
||||||
|
if (u.includes("url", 2)) {
|
||||||
|
u = inv_vid.formatStreams[2].url;
|
||||||
|
}
|
||||||
|
if (!u.includes("url", 2)) {
|
||||||
|
u = inv_vid.formatStreams[1].url;
|
||||||
|
}
|
||||||
|
|
||||||
|
var url = u;
|
||||||
|
|
||||||
if (q === "medium") {
|
if (q === "medium") {
|
||||||
var url = `https://tube.kuylar.dev/proxy/media/${v}/18`;
|
var url = inv_vid.formatStreams[1].url;
|
||||||
}
|
}
|
||||||
|
|
||||||
// encryption
|
// encryption
|
Loading…
Reference in a new issue