This commit is contained in:
Ashley 2023-02-05 15:49:37 +00:00
parent df7a02b9af
commit f2305f980d

View file

@ -550,17 +550,25 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=<
<a href="/channel?id=<%=ID%>" class="tab active">Videos</a> <a href="/channel?id=<%=ID%>" class="tab active">Videos</a>
<% if (Array.isArray(shorts.videos)) { %> <% if (Array.isArray(shorts.videos)) { %>
<% if (shorts.videos[0]) { %>
<% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %>
<a href="/channel?id=<%=ID%>&tab=shorts" class="tab">Shorts</a> <a href="/channel?id=<%=ID%>&tab=shorts" class="tab">Shorts</a>
<% } %> <% } %>
<% } %>
<% } %> <% } %>
<% if (Array.isArray(stream.videos)) { %> <% if (Array.isArray(stream.videos)) { %>
<% if (stream.videos[0]) { %>
<% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %>
<a href="/channel?id=<%=ID%>&tab=live" class="tab">Live</a> <a href="/channel?id=<%=ID%>&tab=live" class="tab">Live</a>
<% } %> <% } %>
<% } %>
<% } %> <% } %>
<% if (Array.isArray(c.comments)) { %> <% if (Array.isArray(c.comments)) { %>
@ -653,6 +661,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=<
<a href="/channel?id=<%=ID%>" class="tab">Videos</a> <a href="/channel?id=<%=ID%>" class="tab">Videos</a>
<% if (Array.isArray(shorts.videos)) { %> <% if (Array.isArray(shorts.videos)) { %>
<% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %>
<a href="/channel?id=<%=ID%>&tab=shorts" class="tab">Shorts</a> <a href="/channel?id=<%=ID%>&tab=shorts" class="tab">Shorts</a>