globocom / m3u8

Python m3u8 Parser for HTTP Live Streaming (HLS) Transmissions
Other
2.03k stars 471 forks source link

Fix output for example LL-HLS manifest #370

Closed bbayles closed 3 months ago

bbayles commented 3 months ago

This PR makes a change to the output for low latency playlists.

The test suite already has one of the example playlists from here, but I've added another one.

Previously this was the result of parsing and dumping this playlist:

            if not self.init_section:
>               raise MalformedPlaylistError(
                    "init section can't be None if previous is not None"
                )
E               m3u8.model.MalformedPlaylistError: init section can't be None if previous is not None

m3u8/model.py:603: MalformedPlaylistError