From a9925e44bbd1efb75f633ab2863e0f43d0f1c2e7 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Fri, 2 Dec 2022 15:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=B7=E6=B5=81=E5=A4=B1=E8=B4=A5=E4=B9=9F?= =?UTF-8?q?=E7=AE=97=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs | 6 +++++- src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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))