From de4fc0e2022c926583bdcc1594df6ba4b6e0eb05 Mon Sep 17 00:00:00 2001
From: Ashley
Date: Wed, 27 Sep 2023 18:20:31 +0000
Subject: [PATCH] fix alot of stuff :3
---
html/channel.ejs | 106 ++++++++++++++++++++++++++---------------------
1 file changed, 59 insertions(+), 47 deletions(-)
diff --git a/html/channel.ejs b/html/channel.ejs
index 82c9a18e..b7ad6438 100644
--- a/html/channel.ejs
+++ b/html/channel.ejs
@@ -1,4 +1,6 @@
-
+ Error: <%= error.message %>
+<% } %>
+
+
@@ -650,9 +660,9 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=<
<% } %>
- <% if (Array.isArray(stream.videos)) { %>
-<% if (stream.videos[0]) { %>
-<% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %>
+ <% if (Array?.isArray(stream?.videos)) { %>
+<% if (stream?.videos[0]) { %>
+<% if (turntomins(stream?.videos[0]?.lengthSeconds) != "aN:aN" ) { %>
- <% if (j.Channel.Metadata.Banners.Thumbnail) { %>
+ <% if (j.Channel?.Metadata.Banners.Thumbnail) { %>
-
+
<% } %>
@@ -786,10 +796,10 @@ align-content: center;
margin: auto;
width: fit-content;
">
-
+
-
<%=j.Channel.Metadata.Name%>
+
<%=j.Channel?.Metadata.Name%>
<%=subs%> subscribers
@@ -1050,7 +1060,7 @@ width: fit-content;
margin-left: 8em;" >
- <% if (Array.isArray( shorts.videos)) { %>
+ <% if (Array?.isArray( shorts.videos)) { %>
<% shorts.videos.forEach (x => { %>
@@ -1072,7 +1082,7 @@ margin-left: 8em;" >
- <% if (shorts.continuation) { %>
+ <% if (shorts?.continuation) { %>
@@ -1146,9 +1156,9 @@ margin-left: 8em;" >
- <% if (stream.continuation) { %>
+ <% if (stream?.continuation) { %>
<% } %>
@@ -1158,23 +1168,23 @@ margin-left: 8em;" >
<% if (tab === "community") { %>
- <% if (Array.isArray( c.comments)) { %>
+ <% if (Array?.isArray( c?.comments)) { %>