Crates.io | media_filename |
lib.rs | media_filename |
version | 0.1.4 |
source | src |
created_at | 2016-05-28 21:06:45.561898 |
updated_at | 2016-06-05 10:27:33.649687 |
description | A library for squeezing information out of filenames of torrents and media files. |
homepage | |
repository | http://github.com/theMonttu/media_filename |
max_upload_size | |
id | 5217 |
size | 9,410 |
A library for squeezing information out of filenames of torrents and media files.
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());
}