识别Characteristics

This commit is contained in:
nilaoda 2022-08-27 20:13:31 +08:00
parent 962c2527ba
commit dbc09f99cb
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,8 @@ namespace N_m3u8DL_RE.Common.Entity
//补充信息-色域 //补充信息-色域
public string? VideoRange { get; set; } public string? VideoRange { get; set; }
//补充信息-特征
public string? Characteristics { get; set; }
//外部轨道GroupId (后续寻找对应轨道信息) //外部轨道GroupId (后续寻找对应轨道信息)
public string? AudioId { get; set; } public string? AudioId { get; set; }
@ -97,7 +99,7 @@ namespace N_m3u8DL_RE.Common.Entity
else if (MediaType == Enum.MediaType.SUBTITLES) else if (MediaType == Enum.MediaType.SUBTITLES)
{ {
prefixStr = $"[deepskyblue3_1]Sub[/] {encStr}"; prefixStr = $"[deepskyblue3_1]Sub[/] {encStr}";
var d = $"{GroupId} | {Language} | {Name} | {Codecs} | {segmentsCountStr}"; var d = $"{GroupId} | {Language} | {Name} | {Codecs} | {Characteristics} | {segmentsCountStr}";
returnStr = d.EscapeMarkup(); returnStr = d.EscapeMarkup();
} }
else else

View File

@ -196,6 +196,10 @@ namespace N_m3u8DL_RE.Parser.Extractor
if (!string.IsNullOrEmpty(channels)) if (!string.IsNullOrEmpty(channels))
streamSpec.Channels = channels; streamSpec.Channels = channels;
var characteristics = ParserUtil.GetAttribute(line, "CHARACTERISTICS");
if (!string.IsNullOrEmpty(characteristics))
streamSpec.Characteristics = characteristics.Split(',').Last().Split('.').Last();
streams.Add(streamSpec); streams.Add(streamSpec);
} }
else if (line.StartsWith("#")) else if (line.StartsWith("#"))