Fix some 'bugs' flagged by sonarcloud

This commit is contained in:
Bond_009
2020-05-25 23:52:51 +02:00
parent 777c9c7bc9
commit 10e381f66f
18 changed files with 126 additions and 133 deletions

View File

@@ -33,10 +33,12 @@ namespace MediaBrowser.MediaEncoding.Subtitles
{
continue;
}
if (line.StartsWith("["))
{
break;
if (string.IsNullOrEmpty(line))
continue;
}
var subEvent = new SubtitleTrackEvent { Id = eventIndex.ToString(_usCulture) };
eventIndex++;
var sections = line.Substring(10).Split(',');