mirror of
https://codeberg.org/ashley/poke
synced 2025-04-06 01:27:59 +00:00
we did it reddit! theres now non-array subtitle support!!!
This commit is contained in:
parent
e0d92bd1bd
commit
0177a34d68
@ -318,14 +318,22 @@
|
||||
|
||||
|
||||
<% if ( video.Subtitles.Subtitle) { %>
|
||||
|
||||
<% if (Array.isArray( video.Subtitles.Subtitle)) { %>
|
||||
<% video.Subtitles.Subtitle.forEach(x => { %>
|
||||
<track src="/api/subtitles?v=<%=video.id%>&h=<%= x.language %>" label="<%= x.language.replace("United States","Simplified - USA") %>" kind="subtitles">
|
||||
|
||||
<img src="https://t.poketube.fun/t/rep.gif?v=<%=btoa(video.id)%>&h=<%= x.language %>" id="subtitle_usage_rate" style="border:0;width: 0;visibility: hidden;">
|
||||
<% }) %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% if (!Array.isArray( video.Subtitles.Subtitle)) { %>
|
||||
<track src="/api/subtitles?v=<%=video.id%>&h=<%= video.Subtitles.Subtitle.language %>" label="<%= video.Subtitles.Subtitle.language.replace("United States","Simplified - USA") %>" kind="subtitles">
|
||||
|
||||
<img src="https://t.poketube.fun/t/rep.gif?v=<%=btoa(video.id)%>&h=<%= video.Subtitles.Subtitle.language %>" id="subtitle_usage_rate" style="border:0;width: 0;visibility: hidden;">
|
||||
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
</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">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user