From c8ca77fd9527f0010e41f39def3cef4501c524f3 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 4 Feb 2023 21:57:13 +0000 Subject: [PATCH] hehe tabby --- html/channel.ejs | 196 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 194 insertions(+), 2 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index dfeeecd..0c67cb7 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -548,7 +548,14 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (!tab) { %> Videos - + <% if (Array.isArray(shorts.videos)) { %> + + Shorts + <% } %> + <% if (Array.isArray(stream.videos)) { %> + + Live + <% } %> <% if (Array.isArray(c.comments)) { %> <% if (c.comments.length != "0") { %> @@ -563,6 +570,15 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (tab === "about") { %> Videos + <% if (Array.isArray(shorts.videos)) { %> + + Shorts + <% } %> + + <% if (Array.isArray(stream.videos)) { %> + + Live + <% } %> <% if (Array.isArray(c.comments)) { %> <% if (c.comments.length != "0") { %> @@ -577,14 +593,68 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (tab === "community") { %> Videos - + <% if (Array.isArray(shorts.videos)) { %> + + Shorts + <% } %> + <% if (Array.isArray(stream.videos)) { %> + + Live + <% } %> + Community About <% } %> + <% if (tab === "shorts") { %> + + Videos + <% if (Array.isArray(shorts.videos)) { %> + + Shorts + <% } %> + <% if (Array.isArray(stream.videos)) { %> + + Live + <% } %> + + <% if (Array.isArray(c.comments)) { %> + + <% if (c.comments.length != "0") { %> + + Community + <% } %> + <% } %> + + About + <% } %> + + <% if (tab === "live") { %> + + Videos + <% if (Array.isArray(shorts.videos)) { %> + + Shorts + <% } %> + <% if (Array.isArray(stream.videos)) { %> + + Live + <% } %> + + <% if (Array.isArray(c.comments)) { %> + + <% if (c.comments.length != "0") { %> + + Community + <% } %> + <% } %> + + About + <% } %> + <% } %> @@ -758,6 +828,128 @@ width: fit-content; <% } %> + <% if (tab === "shorts") { %> + + + +
+ <% if (!isMobile) { %> + + + + +
+ <% } %> + + +
+ + + <% if (Array.isArray( shorts.videos)) { %> + + <% shorts.videos.forEach (x => { %> + +
<%- turntomins(x.lengthSeconds) %>
+
+ <%- x.title %> + +
+
+ <% }) %> + <% } %> + + + + + + +
+ + <% if (shorts.continuation) { %> +
+ Next Page +
+ + <% } %> + + + <% } %> + + <% if (tab === "live") { %> + + + +
+ <% if (isMobile) { %> +
+ <% if (!sort) { %> + + + Recently Uploaded + + + + Popular + + <% } %> + + <% if (sort) { %> + + + Recently Uploaded + + + + Popular + + <% } %> + + + +
+ + + +
+ <% } %> + + +
+ + + <% if (Array.isArray( stream.videos)) { %> + + <% stream.videos.forEach (x => { %> + +
<%- turntomins(x.lengthSeconds) %>
+
+ <%- x.title %> + +
+
+ <% }) %> + <% } %> + + + + + + +
+ + <% if (stream.continuation) { %> +
+ Next Page +
+ + <% } %> + + + <% } %> + + <% if (tab === "community") { %> <% if (Array.isArray( c.comments)) { %>