diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index bbbdfda..c017c5d 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -307,7 +307,7 @@ module.exports = function (app, config, renderTemplate) { if (continuation) { const currentAuthorId = String(cinv.authorId).trim(); - const firstVideoAuthorId = String(tj.videos[0].authorId).trim(); + const firstVideoAuthorId = String(tj?.videos[0].authorId).trim(); if (currentAuthorId.localeCompare(firstVideoAuthorId) !== 0) { res.status(400).send("Continuation does not match the channel :c");