混流失败也算失败

This commit is contained in:
nilaoda 2022-12-02 15:55:57 +08:00
parent 66daf00b5a
commit a9925e44bb
2 changed files with 10 additions and 2 deletions

View File

@ -708,7 +708,11 @@ namespace N_m3u8DL_RE.DownloadManager
var tmpDir = DownloaderConfig.MyOptions.TmpDir ?? Environment.CurrentDirectory;
OtherUtil.SafeDeleteDir(tmpDir);
}
else Logger.ErrorMarkUp($"Mux failed");
else
{
success = false;
Logger.ErrorMarkUp($"Mux failed");
}
//判断是否要改名
var newPath = Path.ChangeExtension(outPath, ext);
if (result && !File.Exists(newPath))

View File

@ -831,7 +831,11 @@ namespace N_m3u8DL_RE.DownloadManager
var tmpDir = DownloaderConfig.MyOptions.TmpDir ?? Environment.CurrentDirectory;
OtherUtil.SafeDeleteDir(tmpDir);
}
else Logger.ErrorMarkUp($"Mux failed");
else
{
success = false;
Logger.ErrorMarkUp($"Mux failed");
}
//判断是否要改名
var newPath = Path.ChangeExtension(outPath, ext);
if (result && !File.Exists(newPath))