Crates.io | tnp-extensions |
lib.rs | tnp-extensions |
version | 0.10.1 |
source | src |
created_at | 2022-03-11 03:57:08.094635 |
updated_at | 2022-03-11 03:57:08.094635 |
description | Simple set of extensions privided for torrent-name-parser |
homepage | |
repository | https://github.com/Bas-Man/tnp-extensions |
max_upload_size | |
id | 547996 |
size | 6,573 |
A simple set of extensions to help with the torrent_name_parser
crate.
use torrent_name_parser::Metadata;
use tnp_extensions::TNPExtensions;
let m = Metadata::from("narcos.s01e10.1080p.bluray.x264-rovers").unwrap();
println!("first Ep:{}", m.first_episode().unwrap());
println!("last Epi:{}", m.last_episode().unwrap());
println!("is_multi: {}", m.is_mutli_episodes());
let m = Metadata::from("narcos.s01e10e11.1080p.bluray.x264-rovers.srt").unwrap();
println!("first Ep:{}", m.first_episode().unwrap());
println!("last Epi:{}", m.last_episode().unwrap());
println!("is_multi: {}", m.is_mutli_episodes());
println!("is_subtitle: {}", m.is_subtitle());