mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Merge pull request #776 from IanDBird/srt-fix
Ignore extra returns in Subrip parsing
This commit is contained in:
commit
e13e23e3e0
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ public final class SubripParser implements SubtitleParser {
|
|||
String currentLine;
|
||||
|
||||
while ((currentLine = reader.readLine()) != null) {
|
||||
// Skip blank lines.
|
||||
if (currentLine.length() == 0)
|
||||
continue;
|
||||
|
||||
// Parse the numeric counter as a sanity check.
|
||||
try {
|
||||
Integer.parseInt(currentLine);
|
||||
|
|
|
|||
Loading…
Reference in a new issue