<% if (!tab) { %>
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 (tab === "about") { %>
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 (tab === "community") { %>
Videos
<% if (Array?.isArray(shorts?.videos)) { %>
<% 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
<% } %>
<% } %>
<% } %>
Community
<% } %>
<% if (tab === "shorts") { %>
Videos
<% if (Array?.isArray(shorts?.videos)) { %>
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 (tab === "live") { %>
Videos
<% if (Array?.isArray(shorts?.videos)) { %>
<% if (turntomins(shorts?.videos[0]?.lengthSeconds) != "aN:aN" ) { %>
Shorts
<% } %>
<% } %>
<% if (Array?.isArray(stream?.videos)) { %>
Live
<% } %>
<% if (Array?.isArray(c?.comments)) { %>
<% if (c?.comments?.length != "0") { %>
Community
<% } %>
<% } %>
<% } %>