Add tests for srt parser

This commit is contained in:
Bond_009
2020-12-28 15:43:55 +01:00
parent 2913e2604c
commit 5ac36a8b58
3 changed files with 45 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
var multiline = new List<string>();
while ((line = reader.ReadLine()) != null)
{
if (string.IsNullOrEmpty(line))
if (line.Length == 0)
{
break;
}
@@ -87,7 +87,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
}
}
trackInfo.TrackEvents = trackEvents.ToArray();
trackInfo.TrackEvents = trackEvents;
return trackInfo;
}