Skip to content

Commit

Permalink
apple_music: Fix creation of dummy albums (#1466)
Browse files Browse the repository at this point in the history
Fix creation of dummy albums
  • Loading branch information
xmirakulix authored Jul 7, 2024
1 parent 767d893 commit a6fd4a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion music_assistant/server/providers/apple_music/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,12 @@ def _parse_album(self, album_obj: dict) -> Album | ItemMapping:
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,
Expand Down

0 comments on commit a6fd4a7

Please sign in to comment.