From ed28e92b43532103ba659b6cba326a933ad06596 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 10 Jul 2022 12:47:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=85=88=E8=AF=86=E5=88=ABcontentType?= =?UTF-8?q?=E8=80=8C=E9=9D=9EmimeType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs b/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs index 320cce9..64d71ba 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs @@ -115,7 +115,7 @@ namespace N_m3u8DL_RE.Parser.Extractor //处理baseurl嵌套 segBaseUrl = ExtendBaseUrl(adaptationSet, segBaseUrl); - var mimeType = adaptationSet.Attribute("mimeType")?.Value; + var mimeType = adaptationSet.Attribute("contentType")?.Value ?? adaptationSet.Attribute("mimeType")?.Value; var frameRate = GetFrameRate(adaptationSet); //本AdaptationSet中的全部Representation var representations = adaptationSet.Elements().Where(e => e.Name.LocalName == "Representation"); @@ -126,7 +126,7 @@ namespace N_m3u8DL_RE.Parser.Extractor if (mimeType == null) { - mimeType = representation.Attribute("mimeType")?.Value ?? ""; + mimeType = representation.Attribute("contentType")?.Value ?? representation.Attribute("mimeType")?.Value ?? ""; } var bandwidth = representation.Attribute("bandwidth"); StreamSpec streamSpec = new();