apple_music: Fix creation of dummy albums (#1466)
authorxmirakulix <florian@parnigoni.net>
Sun, 7 Jul 2024 17:24:32 +0000 (19:24 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Jul 2024 17:24:32 +0000 (19:24 +0200)
Fix creation of dummy albums

music_assistant/server/providers/apple_music/__init__.py

index 3adf6b652f00c2e26096870fa3d80d68e478084b..a2eb4cdde494ac199fb72559386e2ead50c85450 100644 (file)
@@ -430,7 +430,12 @@ class AppleMusicProvider(MusicProvider):
         else:
             album_id = album_obj["id"]
             # No more details available other than the id, return an ItemMapping
-            return ItemMapping(MediaType.ALBUM, item_id=album_id, name=album_id)
+            return ItemMapping(
+                media_type=MediaType.ALBUM,
+                provider=self.instance_id,
+                item_id=album_id,
+                name=album_id,
+            )
         album = Album(
             item_id=album_id,
             provider=self.domain,