From ce951e81ea80fd3a67dfca53ecb1508ae2e54dd7 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 2 Mar 2023 20:02:50 +0000 Subject: [PATCH] hehe add erorr --- 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 923ce12d..31388152 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -220,16 +220,15 @@ module.exports = function (app, config, renderTemplate) { let badges = ""; let comments = ""; let nnn = ""; - if (!core.video(v).b && !v) { - badges = ""; - comments = ""; - 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 ") + } renderTemplate(res, req, "poketube.ejs", { color: data.color,