diff --git a/html/channel.ejs b/html/channel.ejs index f8e33f4a..d2c64979 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -647,12 +647,19 @@ height: 100%;
<% 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; %> <% break; %> <% } %> <% } %> + <% if (!thumbnailFound) { %> + + <% } %> +<% } else { %> + <% } %>