识别Characteristics
This commit is contained in:
parent
962c2527ba
commit
dbc09f99cb
|
@ -27,6 +27,8 @@ namespace N_m3u8DL_RE.Common.Entity
|
|||
|
||||
//补充信息-色域
|
||||
public string? VideoRange { get; set; }
|
||||
//补充信息-特征
|
||||
public string? Characteristics { get; set; }
|
||||
|
||||
//外部轨道GroupId (后续寻找对应轨道信息)
|
||||
public string? AudioId { get; set; }
|
||||
|
@ -97,7 +99,7 @@ namespace N_m3u8DL_RE.Common.Entity
|
|||
else if (MediaType == Enum.MediaType.SUBTITLES)
|
||||
{
|
||||
prefixStr = $"[deepskyblue3_1]Sub[/] {encStr}";
|
||||
var d = $"{GroupId} | {Language} | {Name} | {Codecs} | {segmentsCountStr}";
|
||||
var d = $"{GroupId} | {Language} | {Name} | {Codecs} | {Characteristics} | {segmentsCountStr}";
|
||||
returnStr = d.EscapeMarkup();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -196,6 +196,10 @@ namespace N_m3u8DL_RE.Parser.Extractor
|
|||
if (!string.IsNullOrEmpty(channels))
|
||||
streamSpec.Channels = channels;
|
||||
|
||||
var characteristics = ParserUtil.GetAttribute(line, "CHARACTERISTICS");
|
||||
if (!string.IsNullOrEmpty(characteristics))
|
||||
streamSpec.Characteristics = characteristics.Split(',').Last().Split('.').Last();
|
||||
|
||||
streams.Add(streamSpec);
|
||||
}
|
||||
else if (line.StartsWith("#"))
|
||||
|
|
Loading…
Reference in New Issue