From 76dae858666fc368c86db3b95f8867ffed798840 Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 22 May 2024 20:03:55 +0000 Subject: [PATCH] remove vidoes if theres none duh --- html/channel.ejs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html/channel.ejs b/html/channel.ejs index 5640407b..2f3b91a7 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -896,8 +896,15 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> <% if (tab === "shorts") { %> + <% if (Array?.isArray(tj?.videos)) { %> + <% if (tj?.videos[0]) { %> +<% if (turntomins(tj?.videos[0]?.lengthSeconds) != "aN:aN" ) { %> Videos + <% } %> + <% } %> + + <% } %> <% if (Array?.isArray(shorts?.videos)) { %> Shorts