From ddaf70b5d6bc20d1d77d1da067671a90cd3347da Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 10 Jul 2022 11:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=89=87index=E6=94=B9=E7=94=A8long?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Common/Entity/MediaSegment.cs | 2 +- src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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