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