From c9e4ab56fb6f57702d7e45f49cd5beb8801144ff Mon Sep 17 00:00:00 2001 From: ashley Date: Fri, 12 Sep 2025 18:30:40 +0200 Subject: [PATCH] fix --- html/channel.ejs | 90 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 88 insertions(+), 2 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index f599f2cb..4db631d0 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -833,9 +833,69 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> <% } %> +<% if (Array.isArray(released?.playlists)) { %> + + <% if (released.playlists.length != "0") { %> + + Releases + <% } %> + <% } %> + + + <% } %> + +<% if (tab === "releases") { %> + + Videos + +<% if (Array.isArray(shorts?.videos)) { %> + <% if (shorts.videos[0]) { %> +<% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> + + + Shorts + <% } %> + <% } %> + + <% } %> + + <% if (Array.isArray(stream?.videos)) { %> + <% if (stream.videos[0]) { %> + +<% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> + + Live + <% } %> + <% } %> + + <% } %> + + <% if (Array.isArray(c?.comments)) { %> + + <% if (c.comments.length != "0") { %> + + Posts + <% } %> + <% } %> + +<% if (Array.isArray(playlist?.playlists)) { %> + + <% if (playlist.playlists.length != "0") { %> + + Playlists + <% } %> + <% } %> + +<% if (Array.isArray(released?.playlists)) { %> + + <% if (released.playlists.length != "0") { %> + + Releases + <% } %> + <% } %> + <% } %> - <% if (tab === "about") { %> Videos @@ -902,6 +962,14 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> <% } %> +<% if (Array.isArray(released?.playlists)) { %> + + <% if (released.playlists.length != "0") { %> + + Releases + <% } %> + <% } %> + <% } %> <% if (tab === "shorts") { %> @@ -944,7 +1012,15 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Playlists <% } %> <% } %> - + +<% if (Array.isArray(released?.playlists)) { %> + + <% if (released.playlists.length != "0") { %> + + Releases + <% } %> + <% } %> + <% } %> <% if (tab === "live") { %> @@ -978,6 +1054,16 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Playlists <% } %> <% } %> + + +<% if (Array.isArray(released?.playlists)) { %> + + <% if (released.playlists.length != "0") { %> + + Releases + <% } %> + <% } %> + <% } %>