subtitles need id for selection

This commit is contained in:
j 2012-02-19 10:53:33 +00:00
parent 8530fa6f66
commit 8cd9e1f813

View file

@ -795,7 +795,7 @@ pandora.getVideoOptions = function(data) {
options = {}, options = {},
subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true); subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true);
options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer.id].map(function(subtitle) { options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer.id].map(function(subtitle) {
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value}; return {id: subtitle.id, 'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
}) : []; }) : [];
options.censored = canPlayVideo ? [] options.censored = canPlayVideo ? []
: canPlayClips ? ( : canPlayClips ? (