Skip to content

DhruvDh/srt_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(())
}

About

A simple SubRip file parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages