Skip to content
 
 

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

media_filename

A library for squeezing information out of filenames of torrents and media files.

Usage

extern crate media_filename;
use media_filename::parse_filename;

fn main() {
    let info = parse_filename("Super Awesome Series s02e03 2005 720p.mp4");

    println!("Title: {}", info.title.unwrap());
    println!("  Episode: {}, Season: {}", info.episode.unwrap(), info.season.unwrap());
    println!("  Year: {}", info.year.unwrap());
    println!("  Resolution: {}", info.resolution.unwrap());
    println!("  File extension: {}", info.extension.unwrap());
}

About

A rust library for squeezing information out of filenames of torrents and media files.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages