globocom / m3u8

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

Add infspec for specifying precision for EXTINF #367

Closed daveisfera closed 3 months ago

daveisfera commented 4 months ago

At times, numerical quirks are output in EXTINF. I think that the number_to_string function should probably be made more conservative to handle this, but that's potentially a breaking change, so this PR adds infspec to allow specifying a desired precision of milliseconds or microseconds similar to timespec