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