diff --git a/src/N_m3u8DL-RE.Common/Entity/MediaSegment.cs b/src/N_m3u8DL-RE.Common/Entity/MediaSegment.cs index 9727a9c..ac37e10 100644 --- a/src/N_m3u8DL-RE.Common/Entity/MediaSegment.cs +++ b/src/N_m3u8DL-RE.Common/Entity/MediaSegment.cs @@ -8,7 +8,7 @@ namespace N_m3u8DL_RE.Common.Entity { public class MediaSegment { - public int Index { get; set; } + public long Index { get; set; } public double Duration { get; set; } public string? Title { get; set; } diff --git a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs index ab913b2..338ecf0 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs @@ -208,9 +208,9 @@ namespace N_m3u8DL_RE.Parser.Extractor string line; bool expectSegment = false; bool isEndlist = false; - int segIndex = 0; + long segIndex = 0; bool isAd = false; - int startIndex; + long startIndex; Playlist playlist = new(); List mediaParts = new(); @@ -267,7 +267,7 @@ namespace N_m3u8DL_RE.Parser.Extractor //解析起始编号 else if (line.StartsWith(HLSTags.ext_x_media_sequence)) { - segIndex = Convert.ToInt32(ParserUtil.GetAttribute(line)); + segIndex = Convert.ToInt64(ParserUtil.GetAttribute(line)); startIndex = segIndex; } //program date time