From 2e99413e488ee4937a83f806964b2065f864ce43 Mon Sep 17 00:00:00 2001 From: ashley Date: Mon, 22 Jul 2024 20:10:34 +0000 Subject: [PATCH] ehe --- html/channel.ejs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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 %>