优化(?)

This commit is contained in:
nilaoda 2023-04-12 14:43:58 +08:00
parent 019f403339
commit 2aa029a35b
1 changed files with 4 additions and 1 deletions

View File

@ -573,7 +573,10 @@ namespace N_m3u8DL_RE.DownloadManager
{
inputStream.CopyTo(fileOutputStream);
}
if (!DownloaderConfig.MyOptions.LiveKeepSegments && !Path.GetFileName(inputFilePath).StartsWith("_init"))
}
if (!DownloaderConfig.MyOptions.LiveKeepSegments)
{
foreach (var inputFilePath in files.Where(x => !Path.GetFileName(x).StartsWith("_init")))
{
File.Delete(inputFilePath);
}