Crates.io | srt_parser |
lib.rs | srt_parser |
version | 0.1.15 |
source | src |
created_at | 2022-10-09 23:20:50.665171 |
updated_at | 2022-10-21 14:04:59.004823 |
description | A simple SubRip file parser |
homepage | |
repository | https://github.com/DhruvDh/srt_parser |
max_upload_size | |
id | 684239 |
size | 7,675 |
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(())
}