tnp-extensions

Crates.iotnp-extensions
lib.rstnp-extensions
version0.10.1
sourcesrc
created_at2022-03-11 03:57:08.094635
updated_at2022-03-11 03:57:08.094635
descriptionSimple set of extensions privided for torrent-name-parser
homepage
repositoryhttps://github.com/Bas-Man/tnp-extensions
max_upload_size
id547996
size6,573
Adam.S (Bas-Man)

documentation

README

TNPExtension

dependency status

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

cargo fmt