Improve clean

This commit is contained in:
Nikolaj Olsson 2024-04-22 19:44:07 +02:00
parent 8615c0a126
commit c85c3556d9

View File

@ -339,6 +339,14 @@ namespace Nikse.SubtitleEdit.Forms.Tts
File.Delete(fileName);
}
}
foreach (var fileName in Directory.GetFiles(waveFolder, "*.mp3"))
{
if (!fileName.Equals(resultAudioFile, StringComparison.OrdinalIgnoreCase))
{
File.Delete(fileName);
}
}
}
private List<FileNameAndSpeedFactor> FixParagraphAudioSpeed(Subtitle subtitle, string overrideFileName)