fix previous fix
This commit is contained in:
parent
960f97d21d
commit
fa1c4af6fa
1 changed files with 4 additions and 3 deletions
|
@ -792,10 +792,11 @@ pandora.getSortOperator = function(key) {
|
|||
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 = {},
|
||||
subtitlesLayer = Ox.getObject(pandora.site.layers, isSubtitle, true);
|
||||
options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer].items.map(function(subtitle) {
|
||||
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
|
||||
});
|
||||
}) : [];
|
||||
options.censored = canPlayVideo ? []
|
||||
: canPlayClips ? (
|
||||
options.subtitles.length
|
||||
|
|
Loading…
Reference in a new issue