Updated artistSplitIgnoreList handling to merge with default values instead of overwriting.

This commit is contained in:
cwilvx
2025-06-09 17:54:53 +03:00
parent 38b32ae3ee
commit 607eed8680
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -31,6 +31,8 @@ class UserConfig:
"Peter, Paul & Mary",
"Simon & Garfunkel",
"Judy & Mary",
"Belle & Sebastian",
"Florence & The Machine",
}
)
genreSeparators: set[str] = field(default_factory=lambda: {"/", ";", "&"})
@@ -72,7 +74,12 @@ class UserConfig:
# loop through the config file and set the values
for key, value in config.items():
setattr(self, key, value)
if key == "artistSplitIgnoreList":
# Merge with default values instead of overwriting
default_values = self.artistSplitIgnoreList
setattr(self, key, default_values.union(value))
else:
setattr(self, key, value)
# finally set the config path
self._config_path = config_path
+1 -1
View File
@@ -42,7 +42,7 @@ class AlbumVersionEnum(Enum):
BONUS_EDITION = ("bonus",)
BONUS_TRACK = ("bonus track",)
ORIGINAL = ("original", "og")
ORIGINAL = ("original", " og ", "og ")
INTL_VERSION = ("international",)
UK_VERSION = ("uk version",)
US_VERSION = ("us version",)