修正init byterange识别

This commit is contained in:
nilaoda 2022-07-16 23:42:08 +08:00
parent 1f3acf8636
commit dd4577b4cf
1 changed files with 2 additions and 2 deletions

View File

@ -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说明已经不是一个视频了全部丢弃即可