From 0177a34d688a2561bd58ee017c6f4fe630d22ede Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 16 Nov 2022 15:37:26 +0100 Subject: [PATCH] we did it reddit! theres now non-array subtitle support!!! --- html/poketube.ejs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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"> + + + + <% } %> + <% } %> +