mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 01:57:49 +01:00
fix channels
This commit is contained in:
parent
4ab97ef63d
commit
424d025bf7
1 changed files with 9 additions and 9 deletions
|
@ -453,9 +453,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (!Array.isArray(tj.Channel.Contents)) { %>
|
|
||||||
See https://codeberg.org/Ashley/poketube/issues/14#issuecomment-663938
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
<hr style="clear: both;display: block;border: none;border-bottom: 0.5px solid #2f2f2f;margin: 0 0;/*! width: 4.5em; */height: 0;">
|
<hr style="clear: both;display: block;border: none;border-bottom: 0.5px solid #2f2f2f;margin: 0 0;/*! width: 4.5em; */height: 0;">
|
||||||
<% if (!tab) { %>
|
<% if (!tab) { %>
|
||||||
|
@ -464,21 +462,24 @@ See https://codeberg.org/Ashley/poketube/issues/14#issuecomment-663938
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
|
|
||||||
<% if (Array.isArray(tj.Channel.Contents)) { %>
|
|
||||||
|
|
||||||
<div class="video-grid" >
|
<div class="video-grid" >
|
||||||
<% if (!continuation) { %>
|
<% if (!continuation) { %>
|
||||||
|
|
||||||
<% tj.Channel.Contents.ItemSection.ItemSection.Video.forEach(x => { %>
|
<% tj.Channel.Contents.ItemSection[2].Shelf.Items.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>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="title max-lines-2" style="font-family:Ginto Nord,sans-serif;"><%- x.Title %></span>
|
<span class="title max-lines-2" style="font-family:PokeTube flex,sans-serif;font-weight: 1000;font-stretch: ultra-expanded;"><%- x.Title %></span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
continuations are broken on channels atm
|
||||||
|
</p>
|
||||||
<% if (continuation) { %>
|
<% if (continuation) { %>
|
||||||
|
|
||||||
<% tj.Channel.Contents.Video.forEach(x => { %>
|
<% tj.Channel.Contents.Video.forEach(x => { %>
|
||||||
|
@ -490,7 +491,6 @@ See https://codeberg.org/Ashley/poketube/issues/14#issuecomment-663938
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
<% } %>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue