This commit is contained in:
rolux 2012-02-19 08:02:11 +00:00
parent e6c6a19255
commit 960f97d21d

View file

@ -793,7 +793,7 @@ 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 = {};
options.subtitles = Ox.getObject(data.layers, 'isSubtitle', true) || []).map(function(subtitle) {
options.subtitles = (Ox.getObject(data.layers, 'isSubtitle', true) || []).map(function(subtitle) {
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
});
options.censored = canPlayVideo ? []