Ignore dashes and apostrophes when finding dupes.
This commit is contained in:
@@ -367,6 +367,8 @@ impl Movies {
|
|||||||
let parent = clean_path_parent(path)
|
let parent = clean_path_parent(path)
|
||||||
.to_string_lossy()
|
.to_string_lossy()
|
||||||
.to_ascii_lowercase()
|
.to_ascii_lowercase()
|
||||||
|
.replace("-", " ")
|
||||||
|
.replace("'", "")
|
||||||
.to_string();
|
.to_string();
|
||||||
if date_re.is_match(&parent) {
|
if date_re.is_match(&parent) {
|
||||||
movie_counter.entry(parent).or_insert(Vec::new()).push(m);
|
movie_counter.entry(parent).or_insert(Vec::new()).push(m);
|
||||||
|
|||||||
Reference in New Issue
Block a user