mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2024-11-25 10:10:58 +00:00
m3u8 parser for rust
7247e02ee5
Added * DateRange struct and implementations * Parsing DateRange (wasn't parsed due to a typo) * fn daterange() to parse DateRange * `write_some_other_attributes` macro * resolved `FIXME required unless None` for method and iv Changed / fixed: * trim_matches() potentially too greedy, replaced with strip_suffix/prefix * removed a bunch of "Unnecessary qualification", eg `fmt::` for `Display` * changed `fn extmap()` to use `QuotedOrUnquoted` and `other_attributes` * `fmt` for `QuotedOrUnquoted` are now printing quoted strings in `"` * `bool_default_false` macro renamed to `is_yes` * qualified error message for `quoted_string_parse` and `unquoted_string_parse` * `other_attributes` now `Option<>` * `ClosedCaptionGroupId::Other(s)` variant processing added to `write_to` * `HDCPLevel::Other(s)` variant processing added to `fmt` * `AlternativeMediaType::Other(s)` variant processing added to `fmt` * `InstreamId::Other(s)` variant processing added to `fmt` * `MediaPlaylistType::Other(s)` variant processing added to `fmt` * `KeyMethod::Other(s)` variant processing added to `fmt` * included `DateRange` to tests * included `other_attributes` to tests Minor: Typos corrections rustfmt applied |
||
---|---|---|
.github/workflows | ||
examples | ||
sample-playlists | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
LICENSE | ||
masterplaylist.m3u8 | ||
mediaplaylist.m3u8 | ||
playlist.m3u8 | ||
README.md |
m3u8-rs
A Rust library for parsing m3u8 playlists (HTTP Live Streaming) link.
Uses the nom
library for all of the parsing.
Examples
Examples can be found in the examples
folder.