From f2305f980d8cd11afb0aa24fe144df37e98caa2e Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 5 Feb 2023 15:49:37 +0000 Subject: [PATCH] lmao --- html/channel.ejs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/html/channel.ejs b/html/channel.ejs index 7e75266..96302b6 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -550,17 +550,25 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Videos <% if (Array.isArray(shorts.videos)) { %> + <% if (shorts.videos[0]) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> + Shorts <% } %> + <% } %> + <% } %> <% if (Array.isArray(stream.videos)) { %> + <% if (stream.videos[0]) { %> + <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> Live <% } %> + <% } %> + <% } %> <% if (Array.isArray(c.comments)) { %> @@ -653,6 +661,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Videos <% if (Array.isArray(shorts.videos)) { %> + <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> Shorts