Expand description
A simple SubRip file parser. Example usage -
use std::path::PathBuf;
use srt_parser::SubRipFile;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let subs = SubRipFile::new(PathBuf::from("test.srt"))?;
for sub in subs.subtitles() {
println!("{:#?}", sub);
}
Ok(())
}
Modules§
- parser
- Includes
peg
parsers used to parse subtitles
Structs§
- SubRip
File - A struct representing a subtitle file
- Subtitle
- A struct representing a subtitle