From 349cc76dfa13aba91808fb4506f7fbc36c93bbba Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 16 Dec 2022 19:16:32 +0000 Subject: [PATCH] add somethin to check if data video --- src/libpoketube/init/pages-video.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 711f9760..97df7f07 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -181,6 +181,7 @@ module.exports = function (app, config, renderTemplate) { const engagement = data.engagement; var inv_comments = data.comments; const inv_vid = data.vid; + if(data.video) { if(json) { if(json.Title) { @@ -238,7 +239,7 @@ module.exports = function (app, config, renderTemplate) { }); } } - + } });