Use kwargs only to create ItemMapping
authorMichael Harbarth <michael.harbarth@gmx.de>
Tue, 8 Aug 2023 05:29:26 +0000 (07:29 +0200)
committerMichael Harbarth <michael.harbarth@gmx.de>
Tue, 8 Aug 2023 05:29:26 +0000 (07:29 +0200)
music_assistant/server/providers/deezer/__init__.py

index a86e0a8663d7997bd5d28e9c1fe0ff902e258134..b98d6ad9dc5a5e71afda4c5b6f43571aa748cb5c 100644 (file)
@@ -487,10 +487,10 @@ class DeezerProvider(MusicProvider):  # pylint: disable=W0223
             name=album.title,
             artists=[
                 ItemMapping(
-                    MediaType.ARTIST,
-                    str(album.artist.id),
-                    self.instance_id,
-                    album.artist.name,
+                    media_type=MediaType.ARTIST,
+                    item_id=str(album.artist.id),
+                    provider=self.instance_id,
+                    name=album.artist.name,
                 )
             ],
             media_type=MediaType.ALBUM,