diff --git a/html/channel.ejs b/html/channel.ejs index bcb32116..4b39c086 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -731,8 +731,62 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> <% } %> +<% if (Array.isArray(playlist?.playlists)) { %> + + <% if (playlist.playlists.length != "0") { %> + + Playlists + <% } %> + <% } %> + <% } %> + +<% if (tab === "playlist") { %> + + 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") { %> + + Community + <% } %> + <% } %> + +<% if (Array.isArray(playlist?.playlists)) { %> + + <% if (playlist.playlists.length != "0") { %> + + Playlists + <% } %> + <% } %> + + + <% } %> + <% if (tab === "about") { %> Videos @@ -790,6 +844,15 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< Community + +<% if (Array.isArray(playlist?.playlists)) { %> + + <% if (playlist.playlists.length != "0") { %> + + Playlists + <% } %> + <% } %> + <% } %> <% if (tab === "shorts") { %> @@ -817,9 +880,18 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> <% } %> + +<% if (Array.isArray(playlist?.playlists)) { %> + + <% if (playlist.playlists.length != "0") { %> + + Playlists + <% } %> + <% } %> + <% } %> - <% if (tab === "live") { %> + <% if (tab === "live") { %> Videos <% if (Array?.isArray(shorts?.videos)) { %> @@ -844,6 +916,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% } %> <% } %> + @@ -1316,7 +1389,41 @@ width: fit-content; <% } %> + <% if (tab === "playlist") { %> + + + +
+ + +
+ + <% if (Array.isArray(playlist.playlists)) { %> + + <% playlist.playlists.forEach (x => { %> + +
<%- x.videoCount %> Videos
+
+ <%- x.title %> + +
+
+ <% }) %> + <% } %> + + + + + + +
+ + + + <% } %> + + <% if (tab === "community") { %> <% if (Array?.isArray( c?.comments)) { %>