7 releases
0.1.15 | Oct 21, 2022 |
---|---|
0.1.14 | Oct 18, 2022 |
#21 in #srt
27 downloads per month
8KB
129 lines
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(())
}
lib.rs
:
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(())
}
Dependencies
~1.5MB
~26K SLoC