mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Fix SE/whisper issue - thx zap7de/darnn
Related to https://github.com/SubtitleEdit/subtitleedit/issues/6760
This commit is contained in:
parent
7b0bbfba97
commit
8325a7beda
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user