From 3484c1e2208d6ffc8fc7c86c77b59f7619f8585f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 14 Jul 2013 09:13:48 +0000 Subject: [PATCH] dont return part if it ends at clip in point --- static/js/pandora/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 12b0fa0c..fe156fc0 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -589,12 +589,11 @@ pandora.getClipVideos = function(clip, resolution) { start = clip['in'] || 0, end = clip.out; resolution = resolution || pandora.user.ui.videoResolution; - return Ox.flatten(Ox.range(clip.parts).map(function(i) { var item = { src: pandora.getVideoURL(clip.item, resolution, i + 1) }; - if(currentTime + clip.durations[i] < start || currentTime > end) { + if(currentTime + clip.durations[i] <= start || currentTime > end) { item = null; } else { if(currentTime <= start && currentTime + clip.durations[i] > start) {