diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs index 9b232f5..1f2fa29 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs @@ -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)) diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs index b11fc68..3e9a360 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs @@ -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))