From c8beda0f504918bb71a597946555a19b4dacb4f6 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 4 Jun 2023 12:34:19 +0000 Subject: [PATCH] fix channels lmao --- html/channel.ejs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index 5bcda53c..e1eb56ac 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -569,7 +569,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Videos -<% if (Array.isArray(shorts.videos)) { %> +<% if (Array.isArray(shorts?.videos)) { %> <% if (shorts.videos[0]) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> @@ -580,7 +580,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> - <% if (Array.isArray(stream.videos)) { %> + <% if (Array.isArray(stream?.videos)) { %> <% if (stream.videos[0]) { %> <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> @@ -605,7 +605,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (tab === "about") { %> Videos -<% if (Array.isArray(shorts.videos)) { %> +<% if (Array.isArray(shorts?.videos)) { %> <% if (shorts.videos[0]) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> @@ -666,11 +666,11 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (tab === "shorts") { %> Videos -<% if (Array.isArray(shorts.videos)) { %> +<% if (Array.isArray(shorts?.videos)) { %> Shorts <% } %> - <% if (Array.isArray(stream.videos)) { %> + <% if (Array.isArray(stream?.videos)) { %> <% if (stream.videos[0]) { %> <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> @@ -694,7 +694,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (tab === "live") { %> Videos -<% if (Array.isArray(shorts.videos)) { %> +<% if (Array.isArray(shorts?.videos)) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> @@ -702,7 +702,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> <% } %> - <% if (Array.isArray(stream.videos)) { %> + <% if (Array.isArray(stream?.videos)) { %> Live <% } %>