srt_parser

Crates.iosrt_parser
lib.rssrt_parser
version0.1.15
sourcesrc
created_at2022-10-09 23:20:50.665171
updated_at2022-10-21 14:04:59.004823
descriptionA simple SubRip file parser
homepage
repositoryhttps://github.com/DhruvDh/srt_parser
max_upload_size
id684239
size7,675
Dhruv Dhamani (DhruvDh)

documentation

README

srt_parser

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(())
}
Commit count: 14

cargo fmt