From 9fa3afca78ee70581bf4e50e98fa5ee5855b43cf Mon Sep 17 00:00:00 2001 From: nilaoda Date: Wed, 20 Jul 2022 00:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E9=A2=91=E7=B1=BB=E5=9E=8B=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E5=90=8E=E7=BC=80=E9=BB=98=E8=AE=A4=E4=B8=BAm4a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs index 09ae235..209442b 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs @@ -74,7 +74,10 @@ namespace N_m3u8DL_RE.DownloadManager FileDic[streamSpec.Playlist.MediaInit] = result; task.Increment(1); //修改输出后缀 - output = Path.ChangeExtension(output, ".mp4"); + if (streamSpec.MediaType == Common.Enum.MediaType.AUDIO) + output = Path.ChangeExtension(output, ".m4a"); + else + output = Path.ChangeExtension(output, ".mp4"); if (result != null && result.Success) { var data = File.ReadAllBytes(result.ActualFilePath);