don't censor gaps shorter than one second, fixes #758
This commit is contained in:
parent
2dc7727dab
commit
429bbe53f6
1 changed files with 4 additions and 1 deletions
|
@ -828,7 +828,10 @@ pandora.getVideoOptions = function(data) {
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
[{'in': Ox.last(options.subtitles).out, out: data.duration}]
|
[{'in': Ox.last(options.subtitles).out, out: data.duration}]
|
||||||
)
|
).filter(function(censored) {
|
||||||
|
// don't include gaps shorter than one second
|
||||||
|
return censored.out - censored['in'] >= 1;
|
||||||
|
})
|
||||||
: Ox.range(0, data.duration - 5, 60).map(function(position) {
|
: Ox.range(0, data.duration - 5, 60).map(function(position) {
|
||||||
return {
|
return {
|
||||||
'in': position + 5,
|
'in': position + 5,
|
||||||
|
|
Loading…
Reference in a new issue