Open younseunghyun opened 5 years ago
Hi, I fixed it by adding these lines:
if (cursorStatus == CursorStatus.CUE_TIMECODE && textLine.isEmpty()) {
srtObject.addCue(cue);
cue = null;
cursorStatus = CursorStatus.NONE;
continue;
}
Hi. We currently use you're library for parsing srt, vtt format subtitles.
Thank you for sharing the code.
By the way, when you parsing the srt format file, empty line after CUE_TIMECODE CursorStatus is treated as error case.
But there are possible case that text of cue is blank.
Can you modify this algorithm to handle a blank line?
Thanks.