From 62dadbf4b2324bf3673b673d4d13d129015261f3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 14 Jun 2014 22:37:12 -0400 Subject: [PATCH] subtitle fixes --- MediaBrowser.MediaEncoding/Subtitles/VttWriter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.MediaEncoding/Subtitles/VttWriter.cs b/MediaBrowser.MediaEncoding/Subtitles/VttWriter.cs index 36a05adae3..a82f273f06 100644 --- a/MediaBrowser.MediaEncoding/Subtitles/VttWriter.cs +++ b/MediaBrowser.MediaEncoding/Subtitles/VttWriter.cs @@ -22,7 +22,9 @@ namespace MediaBrowser.MediaEncoding.Subtitles writer.WriteLine(@"{0:hh\:mm\:ss\.fff} --> {1:hh\:mm\:ss\.fff}", TimeSpan.FromTicks(trackEvent.StartPositionTicks), TimeSpan.FromTicks(trackEvent.EndPositionTicks)); var text = trackEvent.Text; - //text = Regex.Replace(text, @"\\N", "
", RegexOptions.IgnoreCase); + + // TODO: Not sure how to handle these + text = Regex.Replace(text, @"\\N", " ", RegexOptions.IgnoreCase); writer.WriteLine(text); writer.WriteLine(string.Empty);