From 9d52b7da95845f5495a42ce6301baabc90194e3c Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 10 Sep 2025 00:46:45 +0200 Subject: [PATCH] fix stuff + add stuff --- html/channel.ejs | 55 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index b4413a48..e2a112fd 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -1025,7 +1025,7 @@ margin-left: 10px; - + <% if (isMobile) { %> @@ -1042,6 +1042,12 @@ margin-left: 10px; Shorts <% } %> + + <% if (turntomins(stream?.videos[0]?.lengthSeconds) != "aN:aN" ) { %> + Live + + <% } %> + <% if (Array.isArray(c.comments)) { %> @@ -1064,7 +1070,11 @@ margin-left: 10px; Shorts <% } %> - <% } %> + <% } %> <% if (turntomins(stream?.videos[0]?.lengthSeconds) != "aN:aN" ) { %> + Live + + <% } %> + Community <% } %> @@ -1078,6 +1088,11 @@ margin-left: 10px; Shorts <% } %> <% } %> + <% if (turntomins(stream?.videos[0]?.lengthSeconds) != "aN:aN" ) { %> + Live + + <% } %> + Posts <% } %> <% if (tab ==="shorts") { %> @@ -1090,7 +1105,41 @@ margin-left: 10px; Shorts <% } %> <% } %> - Posts + <% if (turntomins(stream?.videos[0]?.lengthSeconds) != "aN:aN" ) { %> + Live + + <% } %> + + <% if (Array.isArray(c.comments)) { %> + + <% if (c.comments.length != "0") { %> + + Posts <% } %> + <% } %> + <% } %> <% } %> + + <% if (tab ==="live") { %> + + Videos + <% if (Array?.isArray(shorts?.videos)) { %> + +<% if (turntomins(shorts?.videos[0]?.lengthSeconds) != "aN:aN" ) { %> + + Shorts + <% } %> + <% } %> + <% if (turntomins(stream?.videos[0]?.lengthSeconds) != "aN:aN" ) { %> + Live + + <% } %> + <% if (Array.isArray(c.comments)) { %> + + <% if (c.comments.length != "0") { %> + + Posts <% } %> + <% } %> + <% } %> + <% } %>