mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Ignore extra returns in Subrip parsing
This commit is contained in:
parent
5c0745cedf
commit
4b69fad6b7
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ public final class SubripParser implements SubtitleParser {
|
||||||
String currentLine;
|
String currentLine;
|
||||||
|
|
||||||
while ((currentLine = reader.readLine()) != null) {
|
while ((currentLine = reader.readLine()) != null) {
|
||||||
|
// Skip blank lines.
|
||||||
|
if (currentLine.length() == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Parse the numeric counter as a sanity check.
|
// Parse the numeric counter as a sanity check.
|
||||||
try {
|
try {
|
||||||
Integer.parseInt(currentLine);
|
Integer.parseInt(currentLine);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue