From 97c8cf67b99e39a41462b9e91264a37d329c660f Mon Sep 17 00:00:00 2001 From: j Date: Tue, 14 Feb 2023 10:37:55 +0100 Subject: [PATCH] fix subtitles in player view --- static/js/player.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/player.js b/static/js/player.js index aaeb1a4d..01904e17 100644 --- a/static/js/player.js +++ b/static/js/player.js @@ -1,6 +1,10 @@ 'use strict'; pandora.ui.player = function(data) { + // FIXME: is this the right location to load subtitles? + if (!data.subtitles) { + data.subtitles = pandora.getSubtitles(data); + } var ui = pandora.user.ui,