diff --git a/static/js/pandora/importAnnotations.js b/static/js/pandora/importAnnotations.js index 37ba0196e..5d311bd6e 100644 --- a/static/js/pandora/importAnnotations.js +++ b/static/js/pandora/importAnnotations.js @@ -89,6 +89,20 @@ pandora.ui.importAnnotations = function(data) { ); } } + function parseSRT(data) { + var srt = Ox.parseSRT(data), + length = srt.length - 1; + //pandora layers include outpoint, + //speedtrans right now sets in to out, + //to avoid one frame overlaps, + //move outpoint by 0.001 seconds + for (var i=0; i < length; i++) { + if (srt[i].out == srt[i+1]['in']) { + srt[i].out = srt[i].out - 0.001; + } + } + return srt; + } content.append($('