remove <br/> from parsed subtitles

This commit is contained in:
Luke Pulverenti
2014-06-13 10:24:14 -04:00
parent 14216d1089
commit 6186618f3e
9 changed files with 44 additions and 14 deletions

View File

@@ -43,7 +43,6 @@ namespace MediaBrowser.MediaEncoding.Subtitles
subEvent.EndPositionTicks = GetTicks(sections[headers["End"]]);
subEvent.Text = string.Join(",", sections.Skip(headers["Text"]));
subEvent.Text = Regex.Replace(subEvent.Text, @"\{(\\[\w]+\(?([\w\d]+,?)+\)?)+\}", string.Empty, RegexOptions.IgnoreCase);
subEvent.Text = Regex.Replace(subEvent.Text, @"\\N", "<br />", RegexOptions.IgnoreCase);
trackInfo.TrackEvents.Add(subEvent);
}