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 <% } %>