From 93898da5140334bef2149d84f463edfdf01ffda2 Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 7 Sep 2024 12:43:01 +0000 Subject: [PATCH] Update src/libpoketube/init/pages-video.js --- src/libpoketube/init/pages-video.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index bb68309c..f03954e2 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -228,8 +228,10 @@ module.exports = function (app, config, renderTemplate) { const inv_vid = data?.vid; const desc = data?.desc || ""; - if(k.Error) res.send("error") - + if (k?.Error) { + return res.status(404).send("404: Not Found"); + } + let d = false; if (desc !== "[object Object]") { d = desc.toString().replace(/\n/g, "
");