Skip to content

Commit

Permalink
bug: Fix collections with year in the title
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 21, 2024
1 parent 7d7963d commit 67293f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Regex to remove illegal characters from file names
illegal_chars_regex = re.compile(r'[<>:"/\\|?*\x00-\x1f]+')
# Regex to extract the year from parentheses in the title
year_regex = re.compile(r"\s?\((\d{4})\).*")
year_regex = re.compile(r"\s?\((\d{4})\)(?!.*Collection).*")
# Regex to extract the year from parentheses in the folder name
folder_year_regex = re.compile(r"(.*)\s\((\d{4})\)")
# Regex to remove special characters from the title
Expand Down

0 comments on commit 67293f7

Please sign in to comment.