don't censor gaps shorter than one second, fixes #758

This commit is contained in:
rolux 2012-04-19 06:51:32 +00:00
parent 2dc7727dab
commit 429bbe53f6

View file

@ -828,7 +828,10 @@ pandora.getVideoOptions = function(data) {
};
}),
[{'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) {
return {
'in': position + 5,