优化(?)

This commit is contained in:
nilaoda 2023-04-12 14:43:58 +08:00
parent 019f403339
commit 2aa029a35b

View File

@ -573,7 +573,10 @@ namespace N_m3u8DL_RE.DownloadManager
{ {
inputStream.CopyTo(fileOutputStream); 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); File.Delete(inputFilePath);
} }