fix previous fix
This commit is contained in:
parent
51592b1e62
commit
e3f2f358b8
1 changed files with 1 additions and 1 deletions
|
@ -794,7 +794,7 @@ pandora.getVideoOptions = function(data) {
|
||||||
canPlayVideo = data.editable || pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel,
|
canPlayVideo = data.editable || pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel,
|
||||||
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].items.map(function(subtitle) {
|
options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer.id].map(function(subtitle) {
|
||||||
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
|
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
|
||||||
}) : [];
|
}) : [];
|
||||||
options.censored = canPlayVideo ? []
|
options.censored = canPlayVideo ? []
|
||||||
|
|
Loading…
Reference in a new issue