From 005d012558d3387412ce411c22235349e97e4523 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 18 Sep 2022 18:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9B=B4=E6=92=AD=E8=AF=86?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Program.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/N_m3u8DL-RE/Program.cs b/src/N_m3u8DL-RE/Program.cs index 2ce4803..646a59c 100644 --- a/src/N_m3u8DL-RE/Program.cs +++ b/src/N_m3u8DL-RE/Program.cs @@ -185,13 +185,6 @@ namespace N_m3u8DL_RE //解析流信息 var streams = await extractor.ExtractStreamsAsync(); - //直播检测 - var livingFlag = streams.Any(s => s.Playlist?.IsLive == true) && !option.LivePerformAsVod; - if (livingFlag) - { - Logger.WarnMarkUp($"[white on darkorange3_1]{ResString.liveFound}[/]"); - } - //全部媒体 var lists = streams.OrderBy(p => p.MediaType).ThenByDescending(p => p.Bandwidth).ThenByDescending(GetOrder); //基本流 @@ -251,6 +244,13 @@ namespace N_m3u8DL_RE if (selectedStreams.Any(s => s.Playlist == null) || extractor.ExtractorType == ExtractorType.MPEG_DASH) await extractor.FetchPlayListAsync(selectedStreams); + //直播检测 + var livingFlag = selectedStreams.Any(s => s.Playlist?.IsLive == true) && !option.LivePerformAsVod; + if (livingFlag) + { + Logger.WarnMarkUp($"[white on darkorange3_1]{ResString.liveFound}[/]"); + } + //无法识别的加密方式,自动开启二进制合并 if (selectedStreams.Any(s => s.Playlist.MediaParts.Any(p => p.MediaSegments.Any(m => m.EncryptInfo.Method == EncryptMethod.UNKNOWN)))) {