media_filename

Crates.iomedia_filename
lib.rsmedia_filename
version0.1.4
sourcesrc
created_at2016-05-28 21:06:45.561898
updated_at2016-06-05 10:27:33.649687
descriptionA library for squeezing information out of filenames of torrents and media files.
homepage
repositoryhttp://github.com/theMonttu/media_filename
max_upload_size
id5217
size9,410
Mitja Karhusaari (dogamak)

documentation

README

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());
}
Commit count: 0

cargo fmt