From 429bbe53f65f0ca3a8708a4bc71da0a9526ca825 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 19 Apr 2012 06:51:32 +0000 Subject: [PATCH] don't censor gaps shorter than one second, fixes #758 --- static/js/pandora/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index eeccba126..b072f40ad 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -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,