carlanton / m3u8-parser

A simple HLS playlist parser for Java
MIT License
184 stars 60 forks source link

Missing url when parsing m3u8 #54

Closed kShines closed 1 year ago

kShines commented 2 years ago

When I parse a lot of m3u8 in a linux environment, I find that some of the files are missing the last url, but I can't reproduce it locally MediaPlaylist playlist = parser.readPlaylist(Paths.get(file.getAbsolutePath())); List<MediaSegment> mediaSegments = playlist.mediaSegments(); LOG.info("m3u8 parser from sdk size is {}", mediaSegments.size());

sometime is n, sometime is n-1

carlanton commented 1 year ago

Please re-open if this is still an issue for you!