diff --git a/html/poketube.ejs b/html/poketube.ejs index c7adfffe..e5741e8a 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -850,23 +850,21 @@ display: block; !important;" autoplay controls - <% if ( video?.Subtitles?.Subtitle) { %> - - <% if (Array.isArray( video.Subtitles.Subtitle)) { %> - <% video?.Subtitles?.Subtitle?.forEach(x => { %> - " kind="subtitles"> + + <% if (Array.isArray( inv_vid.captions)) { %> + <% inv_vid.captions?.forEach(x => { %> + " kind="subtitles"> - + <% }) %> <% } %> - <% if (!Array.isArray( video.Subtitles.Subtitle)) { %> - " kind="subtitles"> + <% if (!Array.isArray( inv_vid.captions)) { %> + " kind="subtitles"> <% } %> - <% } %> - + @@ -1830,7 +1828,7 @@ a {
-
+