From 718cf6d13d656792a8a4a1b45b72eb1fac40e8b4 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 14 Oct 2022 15:53:27 +0200 Subject: [PATCH] new stuff :3 --- server.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/server.js b/server.js index 4f7abe03..6f08b0f3 100644 --- a/server.js +++ b/server.js @@ -179,9 +179,11 @@ app.get("/watch", async function (req, res) { const k = data.video; const json = data.json; const engagement = data.engagement; - const inv_comments = data.comments; + var inv_comments = data.comments; const inv_vid = data.vid; + if (!data.comments) inv_comments = " "; + if (api.video(v).b) { var nnn = data.beta; var badges = nnn.channel.badges[0]; @@ -196,21 +198,8 @@ app.get("/watch", async function (req, res) { if (!v) res.redirect("/"); - //video - - var u = inv_vid.formatStreams; - - if (u.includes("url", 2)) { - u = `https://inv.vern.cc/latest_version?id=${v}&itag=22&local=true` - } - if (!u.includes("url", 2)) { - u = `https://inv.vern.cc/latest_version?id=${v}&itag=18&local=true`; - } - - var url = u; - if (q === "medium") { - var url = `https://tube.kuylar.dev/proxy/media/${v}/18`; + var url = `https://inv.vern.cc/latest_version?id=${v}&itag=18&local=true`; } // encryption