allow spaces in episode numbers

This commit is contained in:
Max Bradbury 2022-11-06 23:22:12 +00:00
parent bb26036d19
commit ef110fcb94
1 changed files with 1 additions and 1 deletions

View File

@ -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())