From 3d1e7ba388f824cad7c536d56571c61080a60bca Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 30 Jun 2023 10:39:13 +0000 Subject: [PATCH] add subtitle support back :3 --- html/poketube.ejs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) 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 {
-
+