continuation on channels!

This commit is contained in:
Ashley 2022-09-25 19:25:35 +02:00
parent 77ec8ae03d
commit e47ba35619

View file

@ -457,6 +457,8 @@
<div align="center"> <div align="center">
<div class="video-grid" > <div class="video-grid" >
<% if (!continuation) { %>
<% tj.Channel.Contents.ItemSection.ItemSection.Video.forEach(x => { %> <% tj.Channel.Contents.ItemSection.ItemSection.Video.forEach(x => { %>
<a href="/watch?v=<%- x.id %>" class="video"> <a href="/watch?v=<%- x.id %>" class="video">
<div class="thumbnail" style="background-image: url('https://p.poketube.fun/https://i.ytimg.com/vi/<%= x.id %>/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw');border-radius: 10px;"><span class="video-length"><%- x.duration %></span></div> <div class="thumbnail" style="background-image: url('https://p.poketube.fun/https://i.ytimg.com/vi/<%= x.id %>/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw');border-radius: 10px;"><span class="video-length"><%- x.duration %></span></div>
@ -466,7 +468,48 @@
</div> </div>
</a> </a>
<% }) %> <% }) %>
</div> <% } %> <% } %>
<% if (continuation) { %>
<% tj.Channel.Contents.Video.forEach(x => { %>
<a href="/watch?v=<%- x.id %>" class="video">
<div class="thumbnail" style="background-image: url('https://p.poketube.fun/https://i.ytimg.com/vi/<%= x.id %>/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw');border-radius: 10px;"><span class="video-length"><%- x.duration %></span></div>
<div class="info">
<span class="title max-lines-2" style="font-family:Ginto Nord,sans-serif;"><%- x.Title %></span>
</div>
</a>
<% }) %>
<% } %>
</div>
<% if (!continuation) { %>
<% if (tj.Channel.Contents.ItemSection.ItemSection.Continuation) { %>
<div class="pagination-buttons" style="border-top: none;justify-content: center">
<a style="color:#fff" href="/channel?id=<%=ID%>&continuation=<%=tj.Channel.Contents.ItemSection.ItemSection.Continuation.key%>">Next Page</a>
</div>
<% } %>
<% } %>
<% if (continuation) { %>
<% if (tj.Channel.Contents.Continuation) { %>
<div class="pagination-buttons" style="border-top: none;justify-content: center">
<a style="color:#fff" href="/channel?id=<%=ID%>&continuation=<%=tj.Channel.Contents.Continuation.key%>">Next Page</a>
</div>
<% } %>
<% } %>
<% } %>
<% if (tab === "about") { %> <% if (tab === "about") { %>
<div style="text-align: left;"> <div style="text-align: left;">