分片index改用long
This commit is contained in:
parent
21886d74c7
commit
ddaf70b5d6
|
@ -8,7 +8,7 @@ namespace N_m3u8DL_RE.Common.Entity
|
||||||
{
|
{
|
||||||
public class MediaSegment
|
public class MediaSegment
|
||||||
{
|
{
|
||||||
public int Index { get; set; }
|
public long Index { get; set; }
|
||||||
public double Duration { get; set; }
|
public double Duration { get; set; }
|
||||||
public string? Title { get; set; }
|
public string? Title { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -208,9 +208,9 @@ namespace N_m3u8DL_RE.Parser.Extractor
|
||||||
string line;
|
string line;
|
||||||
bool expectSegment = false;
|
bool expectSegment = false;
|
||||||
bool isEndlist = false;
|
bool isEndlist = false;
|
||||||
int segIndex = 0;
|
long segIndex = 0;
|
||||||
bool isAd = false;
|
bool isAd = false;
|
||||||
int startIndex;
|
long startIndex;
|
||||||
|
|
||||||
Playlist playlist = new();
|
Playlist playlist = new();
|
||||||
List<MediaPart> mediaParts = new();
|
List<MediaPart> mediaParts = new();
|
||||||
|
@ -267,7 +267,7 @@ namespace N_m3u8DL_RE.Parser.Extractor
|
||||||
//解析起始编号
|
//解析起始编号
|
||||||
else if (line.StartsWith(HLSTags.ext_x_media_sequence))
|
else if (line.StartsWith(HLSTags.ext_x_media_sequence))
|
||||||
{
|
{
|
||||||
segIndex = Convert.ToInt32(ParserUtil.GetAttribute(line));
|
segIndex = Convert.ToInt64(ParserUtil.GetAttribute(line));
|
||||||
startIndex = segIndex;
|
startIndex = segIndex;
|
||||||
}
|
}
|
||||||
//program date time
|
//program date time
|
||||||
|
|
Loading…
Reference in New Issue