mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
prevent different cased featured artist names.
remove "/" as artist separator
This commit is contained in:
+3
-2
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user