From 67293f75bf1fa882dc97b9931e6d4ea1ba04077d Mon Sep 17 00:00:00 2001 From: Drazzilb <65743746+Drazzilb08@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:50:12 -0800 Subject: [PATCH] bug: Fix collections with year in the title --- util/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/utility.py b/util/utility.py index 42fc442..9ddc38a 100755 --- a/util/utility.py +++ b/util/utility.py @@ -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