打印加密方式

This commit is contained in:
nilaoda 2022-07-08 18:01:29 +08:00
parent ac6ff8d79e
commit a8bf2f5320
1 changed files with 2 additions and 1 deletions

View File

@ -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))) 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) if (MediaType == Enum.MediaType.AUDIO)