diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index 9f9ad4a..a035ef0 100644 --- a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs +++ b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs @@ -18,7 +18,7 @@ namespace N_m3u8DL_RE.CommandLine { internal partial class CommandInvoker { - public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20230721"; + public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20230728"; [GeneratedRegex("((best|worst)\\d*|all)")] private static partial Regex ForStrRegex(); diff --git a/src/N_m3u8DL-RE/Util/FilterUtil.cs b/src/N_m3u8DL-RE/Util/FilterUtil.cs index 0f57a53..e71b36c 100644 --- a/src/N_m3u8DL-RE/Util/FilterUtil.cs +++ b/src/N_m3u8DL-RE/Util/FilterUtil.cs @@ -246,6 +246,9 @@ namespace N_m3u8DL_RE.Util foreach (var stream in selectedSteams) { if (stream.Playlist == null) continue; + + var countBefore = stream.SegmentsCount; + foreach (var part in stream.Playlist.MediaParts) { //没有找到广告分片 @@ -262,6 +265,13 @@ namespace N_m3u8DL_RE.Util //清理已经为空的 part stream.Playlist.MediaParts = stream.Playlist.MediaParts.Where(x => x.MediaSegments.Count > 0).ToList(); + + var countAfter = stream.SegmentsCount; + + if (countBefore != countAfter) + { + Logger.WarnMarkUp("[grey]{} segments => {} segments[/]", countBefore, countAfter); + } } } }