From 667fa80d0156418de217294ec4a63854de6c6d8f Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 17 Feb 2023 21:19:16 +0000 Subject: [PATCH] fix stuff :3 --- html/channel.ejs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index c03d996a..a20a07ce 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -590,26 +590,33 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Videos <% if (Array.isArray(shorts.videos)) { %> +<% if (shorts.videos[0]) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> Shorts <% } %> + <% } %> + <% } %> <% if (Array.isArray(stream.videos)) { %> +<% if (stream.videos[0]) { %> <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> + Live <% } %> <% } %> + <% } %> <% if (Array.isArray(c.comments)) { %> <% if (c.comments.length != "0") { %> Community - <% } %> - <% } %> + <% } %> + + <% } %> About <% } %> @@ -644,11 +651,15 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Shorts <% } %> <% if (Array.isArray(stream.videos)) { %> + <% if (stream.videos[0]) { %> + <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> Live <% } %> <% } %> + + <% } %> <% if (Array.isArray(c.comments)) { %> @@ -908,7 +919,7 @@ width: fit-content; <% if (shorts.continuation) { %>
- Next Page + Next Page
<% } %> @@ -982,7 +993,7 @@ width: fit-content; <% if (stream.continuation) { %>
- Next Page + Next Page
<% } %>