From 5dd815c08c0088aab30298b22ffb7b0c817f07ec Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 8 May 2023 15:43:27 +0000 Subject: [PATCH] add isvidious --- src/libpoketube/init/pages-video.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 588b0364..22fb48ff 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -209,11 +209,7 @@ core.video(v).then((data) => { let badges = ""; let comments = ""; let nnn = ""; - - let url; - if (q === "medium") { - url = `https://inv.vern.cc/latest_version?id=${v}&itag=18&local=true`; - } + if(inv_vid?.error === "The uploader has not made this video available in your country"){ res.send("error : " + inv_vid.error + " please refresh the page please qt ") @@ -223,13 +219,16 @@ core.video(v).then((data) => { res.send("error : " + inv_vid.error + " please refresh the page please qt ") } + + renderTemplate(res, req, "poketube.ejs", { color: data.color, color2: data.color2, linkify, engagement, support, - u, + u:u.url, + isvidious:u.isInvidiousURL, video: json, date: k.Video.uploadDate, e,