From dd4577b4cf3fc9ea3503d67f07386bbec22b7575 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sat, 16 Jul 2022 23:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3init=20byterange=E8=AF=86?= =?UTF-8?q?=E5=88=AB?= 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 0cbacb1..40fd918 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs @@ -377,8 +377,8 @@ namespace N_m3u8DL_RE.Parser.Extractor { var p = ParserUtil.GetAttribute(line, "BYTERANGE"); var (n, o) = ParserUtil.GetRange(p); - segment.ExpectLength = n; - segment.StartRange = o ?? 0L; + playlist.MediaInit.ExpectLength = n; + playlist.MediaInit.StartRange = o ?? 0L; } } //遇到了其他的map,说明已经不是一个视频了,全部丢弃即可