From 424d025bf70fa674b8fedfbcdab2e87848962e76 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 6 Nov 2022 16:14:39 +0100 Subject: [PATCH] fix channels --- html/channel.ejs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index 37651166..24c64161 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -453,9 +453,7 @@ <% } %> - <% if (!Array.isArray(tj.Channel.Contents)) { %> -See https://codeberg.org/Ashley/poketube/issues/14#issuecomment-663938 - <% } %> +
<% if (!tab) { %> @@ -464,21 +462,24 @@ See https://codeberg.org/Ashley/poketube/issues/14#issuecomment-663938
- <% if (Array.isArray(tj.Channel.Contents)) { %> - +
<% if (!continuation) { %> - <% tj.Channel.Contents.ItemSection.ItemSection.Video.forEach(x => { %> + <% tj.Channel.Contents.ItemSection[2].Shelf.Items.Video.forEach(x => { %>
<%- x.duration %>
- <%- x.Title %> + <%- x.Title %>
<% }) %> <% } %> + +

+ continuations are broken on channels atm +

<% if (continuation) { %> <% tj.Channel.Contents.Video.forEach(x => { %> @@ -490,8 +491,7 @@ See https://codeberg.org/Ashley/poketube/issues/14#issuecomment-663938
<% }) %> - <% } %> - +
<% if (!continuation) { %>