remove lighttube proxy

This commit is contained in:
Ashley 2022-10-13 20:48:58 +02:00
parent e9ca696233
commit 663ba34ec6

View file

@ -197,9 +197,20 @@ app.get("/watch", async function (req, res) {
if (!v) res.redirect("/");
//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") {
var url = `https://tube.kuylar.dev/proxy/media/${v}/18`;
var url = inv_vid.formatStreams[1].url;
}
// encryption