From ef110fcb949824294c692bf850b71f59e99854b7 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 6 Nov 2022 23:22:12 +0000 Subject: [PATCH] allow spaces in episode numbers --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 332cc05..69f464b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,7 +114,7 @@ fn is_movie(file: &DirEntry) -> bool { /// if filename contains something like "S03E21" it's a TV programme fn is_tv_episode(file: &DirEntry) -> bool { lazy_static! { - static ref TV: Regex = Regex::new(r"s\d{2}e\d{2}").unwrap(); + static ref TV: Regex = Regex::new(r"s\d{2}\s*e\d{2}").unwrap(); } TV.is_match(file.file_name().to_str().unwrap())