From b46db566a59d108870136c6686826adcc98155bb Mon Sep 17 00:00:00 2001 From: nilaoda Date: Mon, 31 Oct 2022 02:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs index c6bee1f..f26fd32 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleLiveRecordManager2.cs @@ -127,19 +127,18 @@ namespace N_m3u8DL_RE.DownloadManager useAACFilter = true; } - if (mediainfos.All(m => m.Type == "Audio")) + if (mediainfos.All(m => m.Type == "Audio") && streamSpec.MediaType != MediaType.AUDIO) { var lastKey = streamSpec.ToShortString(); streamSpec.MediaType = MediaType.AUDIO; var newKey = streamSpec.ToShortString(); - //需要同步修改Dictionary中的Key if (LastFileNameDic.Remove(lastKey, out var lastValue1)) LastFileNameDic[newKey] = lastValue1!; if (DateTimeDic.Remove(lastKey, out var lastValue2)) DateTimeDic[newKey] = lastValue2; } - else if (mediainfos.All(m => m.Type == "Subtitle")) + else if (mediainfos.All(m => m.Type == "Subtitle") && streamSpec.MediaType != MediaType.SUBTITLES) { var lastKey = streamSpec.ToShortString(); streamSpec.MediaType = MediaType.SUBTITLES;