forked from 0x2620/pandora
subtitles in edits
This commit is contained in:
parent
6949cab8c6
commit
09f30b3c5a
2 changed files with 16 additions and 12 deletions
|
|
@ -58,13 +58,13 @@ pandora.ui.editPanel = function(isEmbed) {
|
|||
}
|
||||
|
||||
function getVideos() {
|
||||
var videos = {};
|
||||
pandora.site.video.resolutions.forEach(function(resolution) {
|
||||
videos[resolution] = Ox.flatten(edit.clips.filter(function(clip) {
|
||||
return clip.duration;
|
||||
}).map(function(clip) {
|
||||
return pandora.getClipVideos(clip, resolution);
|
||||
}));
|
||||
var videos = [];
|
||||
edit.clips.filter(function(clip) {
|
||||
return clip.duration;
|
||||
}).map(function(clip) {
|
||||
pandora.site.video.resolutions.forEach(function(resolution) {
|
||||
videos = videos.concat(pandora.getClipVideos(clip, resolution));
|
||||
});
|
||||
});
|
||||
return videos;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue