5 releases
Uses old Rust 2015
0.1.4 | Jun 5, 2016 |
---|---|
0.1.3 | Jun 1, 2016 |
0.1.2 | May 28, 2016 |
0.1.1 | May 28, 2016 |
0.1.0 | May 28, 2016 |
#25 in #filenames
29 downloads per month
9KB
200 lines
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());
}
Dependencies
~4MB
~85K SLoC