diff --git a/html/channel.ejs b/html/channel.ejs index 5228b8a0..124a50c1 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -645,7 +645,7 @@ height: 100%; -

<%- cinv.error %> - literally 1984 lmao

+

<%- cinv.error %>

<% } %> @@ -659,20 +659,20 @@ height: 100%; <% if (!isMobile) { %>
-<% if (j?.Channel?.Metadata?.Banners.Thumbnail) { %> - <% let thumbnailFound = false; %> - <% for (let i = 5; i >= 1; i--) { %> - <% if (j.Channel.Metadata.Banners.Thumbnail[i]?.['$t']) { %> - - <% thumbnailFound = true; %> +<% if (cinv?.authorBanners) { %> + <% let bannerFound = false; %> + <% for (let i = 0; i < cinv.authorBanners.length; i++) { %> + <% if (cinv.authorBanners[i]?.url) { %> + + <% bannerFound = true; %> <% break; %> <% } %> <% } %> - <% if (!thumbnailFound) { %> - + <% if (!bannerFound) { %> + <% } %> <% } else { %> - + <% } %> @@ -708,7 +708,7 @@ height: 100%; <% } %> @<%- cinv.authorId %>@youtube.com

-

<%=firstVideo.subCountText%> subscribers - <%- pronoun %>

+

<%= subs %> subscribers - <%- pronoun %>

@@ -1000,7 +1000,7 @@ width: fit-content;

<%=j.Channel?.Metadata.Name%>

- <%=firstVideo.subCountText%> subscribers - <%- pronoun %> + <%= subs %> subscribers - <%- pronoun %>