Fix SE/whisper issue - thx zap7de/darnn

Related to https://github.com/SubtitleEdit/subtitleedit/issues/6760
This commit is contained in:
niksedk 2023-03-21 20:38:47 +01:00
parent 7b0bbfba97
commit 8325a7beda

View File

@ -584,17 +584,6 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
outputText?.Add($"Loading result from {vttFileName}{Environment.NewLine}");
}
for (var i = 0; i < sub.Paragraphs.Count - 1; i++)
{
var p = sub.Paragraphs[i];
var next = sub.Paragraphs[i + 1];
if (!next.Text.StartsWith(" ") && next.StartTime.TotalMilliseconds - p.EndTime.TotalMilliseconds < 200)
{
p.Text += next.Text;
next.Text = string.Empty;
}
}
sub.RemoveEmptyLines();
var results = new List<ResultText>();