mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-26 15:58:44 +01:00
yes
This commit is contained in:
parent
d4b92acd65
commit
7bb2539a36
1 changed files with 14 additions and 4 deletions
|
@ -243,11 +243,14 @@ border-radius: 5px;
|
|||
|
||||
<div class="video-player-container">
|
||||
<video class="player" id="<%=sha384(video.id)%>" style="border-radius: 16px;" autoplay controls src="<%=url%>" poster="https://p.poketube.fun/https://i.ytimg.com/vi/<%=video.id%>/maxresdefault.jpg?v=607ddcd4">
|
||||
<% if ( video.Subtitles.Subtitle) { %>
|
||||
<% if (Array.isArray( video.Subtitles.Subtitle)) { %>
|
||||
|
||||
<% if ( video.Subtitles.Subtitle) { %>
|
||||
|
||||
<% video.Subtitles.Subtitle.forEach(x => { %><track src="/api/subtitles?v=<%=video.id%>&h=<%= x.language %>" label="<%= x.language %>" kind="subtitles">
|
||||
<% }) %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
</video><img src="https://t.poketube.fun/t/rep.gif?video=<%=btoa(video.id)%>" style="border:0;width: 0;visibility: hidden;" id="video">
|
||||
<div style="display: flex;justify-content: center;align-items: center;flex-direction: row; column-gap: 3px;" align="center">
|
||||
|
@ -688,6 +691,14 @@ summary:hover{
|
|||
<div class="primary">
|
||||
<div class="video-player-container">
|
||||
<video class="player" autoplay style="border-radius: 16px;" controls src="<%=url%>" poster="https://i.ytimg.com/vi/<%=video.id%>/hqdefault.jpg?v=607ddcd4">
|
||||
<% if (Array.isArray( video.Subtitles.Subtitle)) { %>
|
||||
|
||||
<% if ( video.Subtitles.Subtitle) { %>
|
||||
|
||||
<% video.Subtitles.Subtitle.forEach(x => { %><track src="/api/subtitles?v=<%=video.id%>&h=<%= x.language %>" label="<%= x.language %>" kind="subtitles">
|
||||
<% }) %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</video>
|
||||
</div>
|
||||
<div class="video-info">
|
||||
|
@ -878,5 +889,4 @@ summary:hover{
|
|||
</body>
|
||||
</html>
|
||||
</body>
|
||||
<% } %>
|
||||
|
||||
<% } %>
|
Loading…
Reference in a new issue