diff --git a/html/poketube.ejs b/html/poketube.ejs index 16cfcb79..2a119d1c 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -318,14 +318,22 @@ <% if ( video.Subtitles.Subtitle) { %> + <% if (Array.isArray( video.Subtitles.Subtitle)) { %> <% video.Subtitles.Subtitle.forEach(x => { %> " kind="subtitles"> <% }) %> - <% } %> - <% } %> + <% } %> + <% if (!Array.isArray( video.Subtitles.Subtitle)) { %> + " kind="subtitles"> + + + + <% } %> + <% } %> +