mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Minor update for VidIcelandic - thx holmgeir :)
This commit is contained in:
parent
39d8290830
commit
7cf43f3d2e
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user