Skip to content

Commit 1caf4e6

Browse files
authored
优化直播流判断 (#670)
1 parent 56de904 commit 1caf4e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ private Task<Playlist> ParseListAsync()
254254
segment.StartRange = o ?? segments.Last().StartRange + segments.Last().ExpectLength;
255255
expectSegment = true;
256256
}
257+
else if (line.StartsWith(HLSTags.ext_x_playlist_type))
258+
{
259+
isEndlist = line.Trim().EndsWith("VOD");
260+
}
257261
// 国家地理去广告
258262
else if (line.StartsWith("#UPLYNK-SEGMENT"))
259263
{

0 commit comments

Comments
 (0)