From f36ca8333f634af2a5d86700fb70524136a5b8fa Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 17 Jul 2022 22:01:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96HLS=E7=A0=81=E7=8E=87?= =?UTF-8?q?=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs index 40fd918..cd79c01 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs @@ -99,7 +99,7 @@ namespace N_m3u8DL_RE.Parser.Extractor if (line.StartsWith(HLSTags.ext_x_stream_inf)) { streamSpec = new(); - var bandwidth = string.IsNullOrEmpty(ParserUtil.GetAttribute(line, "BANDWIDTH")) ? ParserUtil.GetAttribute(line, "AVERAGE-BANDWIDTH") : ParserUtil.GetAttribute(line, "BANDWIDTH"); + var bandwidth = string.IsNullOrEmpty(ParserUtil.GetAttribute(line, "AVERAGE-BANDWIDTH")) ? ParserUtil.GetAttribute(line, "BANDWIDTH") : ParserUtil.GetAttribute(line, "AVERAGE-BANDWIDTH"); streamSpec.Bandwidth = Convert.ToInt32(bandwidth); streamSpec.Codecs = ParserUtil.GetAttribute(line, "CODECS"); streamSpec.Resolution = ParserUtil.GetAttribute(line, "RESOLUTION"); @@ -521,7 +521,7 @@ namespace N_m3u8DL_RE.Parser.Extractor } else { - lists[i].Extension = lists[i].Playlist!.MediaInit != null ? "mp4" : "ts"; + lists[i].Extension = lists[i].Playlist!.MediaInit != null ? "m4s" : "ts"; } } }