globocom / m3u8

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

How to get EXT-X-MAP from m3u8 object? #329

Closed Cosmicoppai closed 9 months ago

Cosmicoppai commented 9 months ago

I'm trying to download segments by iterating over m3u8.segments, is there any way to get the EXT-X-MAP details?

davemevans commented 9 months ago

Yes, the uri and byterange of the map associated with a particular segment are available. See https://github.com/globocom/m3u8/blob/master/tests/test_model.py#L825