From 9b8a9b4ebef0531c953ed47cf0363c7b49615e0b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 6 Oct 2014 14:54:54 +0200 Subject: [PATCH] censored empty subtitles --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index f3353fac..1f079ca3 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1766,7 +1766,7 @@ pandora.getVideoOptions = function(data) { options.censored = canPlayVideo ? [] : canPlayClips ? ( - options.subtitlesLayer + options.subtitlesLayer && data.layers[options.subtitlesLayer].length ? data.layers[options.subtitlesLayer].map(function(subtitle, i) { return { 'in': i == 0 ? 0 : data.layers[options.subtitlesLayer][i - 1].out,