Fix for VTT writer
Doesn't support <br/> tags
This commit is contained in:
parent
3e5ebd84fe
commit
b4c45aaa29
|
@ -19,7 +19,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
cancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
writer.WriteLine(@"{0:hh\:mm\:ss\.fff} --> {1:hh\:mm\:ss\.fff}", TimeSpan.FromTicks(trackEvent.StartPositionTicks), TimeSpan.FromTicks(trackEvent.EndPositionTicks));
|
||||
writer.WriteLine(trackEvent.Text);
|
||||
writer.WriteLine(trackEvent.Text.Replace("<br />", "\r\n"));
|
||||
writer.WriteLine(string.Empty);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user