diff --git a/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSContentProcessor.cs b/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSContentProcessor.cs index 47535f4..3e69ee0 100644 --- a/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSContentProcessor.cs +++ b/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSContentProcessor.cs @@ -29,6 +29,12 @@ namespace N_m3u8DL_RE.Parser.Processor.HLS public override string Process(string m3u8Content, ParserConfig parserConfig) { + //处理content以\r作为换行符的情况 + if (m3u8Content.Contains("\r") && !m3u8Content.Contains("\n")) + { + m3u8Content = m3u8Content.Replace("\r", Environment.NewLine); + } + var m3u8Url = parserConfig.Url; //央视频回放 if (m3u8Url.Contains("tlivecloud-playback-cdn.ysp.cctv.cn") && m3u8Url.Contains("endtime=")) diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index 3a59b52..a6219d4 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) 20231015"; + public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20231021"; [GeneratedRegex("((best|worst)\\d*|all)")] private static partial Regex ForStrRegex();