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

Includes peg parsers used to parse subtitles

Structs

A struct representing a subtitle file
A struct representing a subtitle