fix artist splitter
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 14 Jul 2024 21:46:36 +0000 (23:46 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 14 Jul 2024 21:46:36 +0000 (23:46 +0200)
music_assistant/server/helpers/tags.py

index fed5b2829be489413b8a4bac596e3bfa84464d23..bb8e10264dd1e03aa5dc1c4bf7204e64acffd100 100644 (file)
@@ -65,11 +65,13 @@ def split_artists(
     # when not using the multi artist tag, the artist string may contain
     # multiple artists in freeform, even featuring artists may be included in this
     # string. Try to parse the featuring artists and separate them.
-    splitters = ("featuring", " feat. ", " feat ", "feat.", " & ")
+    splitters = ("featuring", " feat. ", " feat ", "feat.")
     if allow_ampersand:
         splitters = (*splitters, " & ")
     for item in split_items(org_artists):
         for splitter in splitters:
+            if splitter not in item:
+                continue
             for subitem in item.split(splitter):
                 final_artists.add(subitem.strip())
     return tuple(final_artists)