prevent different cased featured artist names.

remove "/" as artist separator
This commit is contained in:
geoffrey45
2023-01-25 09:41:07 +03:00
parent af4221e0c7
commit 5b71b95d66
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -59,9 +59,10 @@ class Track:
def __post_init__(self):
if self.artist is not None:
artists = utils.split_artists(self.artist)
featured = utils.extract_featured_artists_from_title(self.title)
artists.extend(featured)
artists = set(artists)
original_lower = "-".join([a.lower() for a in artists])
artists.extend([a for a in featured if a.lower() not in original_lower])
self.artist_hashes = [utils.create_hash(a, decode=True) for a in artists]