From 0b26129c82a1e7bd8def21b9f021bd38f210bb12 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Thu, 15 Jun 2023 14:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#193?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs | 3 ++- src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs index 121067e..6028329 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs @@ -690,7 +690,8 @@ namespace N_m3u8DL_RE.DownloadManager OutputFiles.ForEach(f => Logger.WarnMarkUp($"[grey]{Path.GetFileName(f.FilePath).EscapeMarkup()}[/]")); var saveDir = DownloaderConfig.MyOptions.SaveDir ?? Environment.CurrentDirectory; var ext = DownloaderConfig.MyOptions.MuxToMp4 ? ".mp4" : ".mkv"; - var outName = $"{DownloaderConfig.DirPrefix}.MUX"; + var dirName = Path.GetFileName(DownloaderConfig.DirPrefix); + var outName = $"{dirName}.MUX"; var outPath = Path.Combine(saveDir, outName); Logger.WarnMarkUp($"Muxing to [grey]{outName.EscapeMarkup()}{ext}[/]"); var result = false; diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs index b214fdf..7b7dc3b 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs @@ -880,7 +880,8 @@ namespace N_m3u8DL_RE.DownloadManager OutputFiles.ForEach(f => Logger.WarnMarkUp($"[grey]{Path.GetFileName(f.FilePath).EscapeMarkup()}[/]")); var saveDir = DownloaderConfig.MyOptions.SaveDir ?? Environment.CurrentDirectory; var ext = DownloaderConfig.MyOptions.MuxToMp4 ? ".mp4" : ".mkv"; - var outName = $"{DownloaderConfig.DirPrefix}.MUX"; + var dirName = Path.GetFileName(DownloaderConfig.DirPrefix); + var outName = $"{dirName}.MUX"; var outPath = Path.Combine(saveDir, outName); Logger.WarnMarkUp($"Muxing to [grey]{outName.EscapeMarkup()}{ext}[/]"); var result = false;