From 51592b1e62bdc29519e82f493caefd146c146b79 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 19 Feb 2012 08:10:00 +0000 Subject: [PATCH] fix previous fix --- static/js/pandora/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index e1b4d004..aa62676c 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -793,8 +793,8 @@ pandora.getVideoOptions = function(data) { var canPlayClips = data.editable || pandora.site.capabilities.canPlayClips[pandora.user.level] >= data.rightslevel, canPlayVideo = data.editable || pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel, options = {}, - subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true).id; - options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer].items.map(function(subtitle) { + subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true); + options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer.id].items.map(function(subtitle) { return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value}; }) : []; options.censored = canPlayVideo ? []