static L parseIncompleteSRT(S text) { LS entries = splitAtEmptyLines(text); ret mapWithIndex(entries, (idx, input) -> { LS lines = trimAll(lines(input)); new SRTEntry e; if (isInteger(first(lines))) lines = dropFirst(lines); LS time = regexpFirstGroups("^(\\d+):(\\d+)", first(lines)); if (time != null) { e.start = parseInt(first(time))*60+parseInt(second(time)); e.end = e.start+2; lines = dropFirst(lines); } e.index = idx+1; e.text = lines(lines); ret e; }); }