mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 21:37:48 +01:00
new stuff :3
This commit is contained in:
parent
5ec9b3f0be
commit
718cf6d13d
1 changed files with 4 additions and 15 deletions
19
server.js
19
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
|
||||
|
|
Loading…
Reference in a new issue