feat: improved feature artists by also adding writer and producer to it
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Hazel 2024-05-21 16:52:01 +02:00
parent 688b4fd357
commit f61b34dd40

View File

@ -147,7 +147,7 @@ class Genius(Page):
if primary_artist is not None:
_artist_name = primary_artist.name
main_artist_list.append(primary_artist)
for feature_artist in data.get("featured_artists", []):
for feature_artist in (*data.get("featured_artists", []), *data.get("producer_artists", []), *data.get("writer_artists", [])):
artist = self.parse_api_object(feature_artist)
if artist is not None:
featured_artist_list.append(artist)