Minor update for VidIcelandic - thx holmgeir :)

This commit is contained in:
niksedk 2021-12-16 19:31:52 +01:00
parent 39d8290830
commit 7cf43f3d2e

View File

@ -9,7 +9,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
{
public class VidIcelandic : SubtitleFormat
{
private static readonly Regex RegexTimeCodes = new Regex(@"^#S\d{14}$", RegexOptions.Compiled);
private static readonly Regex RegexTimeCodes = new Regex(@"^#[ST]\d{14}$", RegexOptions.Compiled);
public override string Extension => ".vid";
@ -45,6 +45,10 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
{
p.Text = (p.Text.TrimEnd() + Environment.NewLine + line.Remove(0, 11).Trim()).Trim();
}
else if (line.Length > 9 && line.StartsWith("DG @015 A"))
{
p.Text = (p.Text.TrimEnd() + Environment.NewLine + line.Remove(0, 9).Trim()).Trim();
}
else
{
_errorCount++;