From dee9dca67887bf7e0bdd2cfd0f19dc4c1d21019f Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Sat, 24 Feb 2024 19:43:33 +0000 Subject: [PATCH] add default_thumbnail --- html/channel.ejs | 7 +++++++ 1 file changed, 7 insertions(+) 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 { %> + <% } %>