diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 31ff04c6..819df5de 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -357,9 +357,9 @@ module.exports = function (app, config, renderTemplate) { engagement, comments: inv_comments, vid: inv_vid, - } = await INNERTUBE.getYouTubeApiVideo(f, v); + } = await INNERTUBE?.getYouTubeApiVideo(f, v); - const data = await INNERTUBE.getYouTubeApiVideo(f, v); + const data = await INNERTUBE?.getYouTubeApiVideo(f, v); const color = data.color; const color2 = data.color2; const desc = data?.desc;