From a8bf2f5320f7b4b97b1ffa7e363eda521f68b24b Mon Sep 17 00:00:00 2001 From: nilaoda Date: Fri, 8 Jul 2022 18:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=8A=A0=E5=AF=86=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Common/Entity/StreamSpec.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE.Common/Entity/StreamSpec.cs b/src/N_m3u8DL-RE.Common/Entity/StreamSpec.cs index 3de9264..cc70a74 100644 --- a/src/N_m3u8DL-RE.Common/Entity/StreamSpec.cs +++ b/src/N_m3u8DL-RE.Common/Entity/StreamSpec.cs @@ -43,7 +43,8 @@ namespace N_m3u8DL_RE.Common.Entity //增加加密标志 if (Playlist != null && Playlist.MediaParts.Any(m => m.MediaSegments.Any(s => s.EncryptInfo.Method != EncryptMethod.NONE))) { - encStr = "[red]*[/] "; + var ms = Playlist.MediaParts.SelectMany(m => m.MediaSegments.Select(s => s.EncryptInfo.Method)).Where(e => e != EncryptMethod.NONE).Distinct(); + encStr = $"[red]*{string.Join(",", ms).EscapeMarkup()}[/] "; } if (MediaType == Enum.MediaType.AUDIO)