Ignore dashes and apostrophes when finding dupes.

This commit is contained in:
Bill Thiede 2021-11-12 19:06:07 -08:00
parent 37b4e1b4b2
commit 708e44053e

View File

@ -367,6 +367,8 @@ impl Movies {
let parent = clean_path_parent(path)
.to_string_lossy()
.to_ascii_lowercase()
.replace("-", " ")
.replace("'", "")
.to_string();
if date_re.is_match(&parent) {
movie_counter.entry(parent).or_insert(Vec::new()).push(m);