正确写入Index

This commit is contained in:
nilaoda 2022-07-10 03:02:38 +08:00
parent 76acf6c421
commit 386c923802
1 changed files with 1 additions and 0 deletions

View File

@ -230,6 +230,7 @@ namespace N_m3u8DL_RE.Parser.Extractor
MediaSegment mediaSegment = new();
mediaSegment.Duration = Convert.ToDouble(duration);
mediaSegment.Url = PreProcessUrl(mediaUrl);
mediaSegment.Index = segmentIndex;
if (mediaRange != null)
{
var (start, expect) = ParserUtil.ParseRange(mediaRange);