From 3430d11c465321268c0be17f117a90f9946b1296 Mon Sep 17 00:00:00 2001 From: John Carr Date: Mon, 13 Jan 2025 23:39:15 +0000 Subject: [PATCH] chore: bump models and use new helper --- music_assistant/providers/fanarttv/__init__.py | 3 +-- pyproject.toml | 2 +- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/music_assistant/providers/fanarttv/__init__.py b/music_assistant/providers/fanarttv/__init__.py index b967e38a6..89a94c5bd 100644 --- a/music_assistant/providers/fanarttv/__init__.py +++ b/music_assistant/providers/fanarttv/__init__.py @@ -114,13 +114,12 @@ async def get_artist_metadata(self, artist: Artist) -> MediaItemMetadata | None: self.logger.debug("Fetching metadata for Artist %s on Fanart.tv", artist.name) if data := await self._get_data(f"music/{artist.mbid}"): metadata = MediaItemMetadata() - metadata.images = UniqueList() for key, img_type in IMG_MAPPING.items(): items = data.get(key) if not items: continue for item in items: - metadata.images.append( + metadata.add_image( MediaItemImage( type=img_type, path=item["url"], diff --git a/pyproject.toml b/pyproject.toml index 4b2034997..2fa8e58d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ "mashumaro==3.14", "memory-tempfile==2.2.3", "music-assistant-frontend==2.10.4", - "music-assistant-models==1.1.15", + "music-assistant-models==1.1.16", "orjson==3.10.12", "pillow==11.0.0", "podcastparser==0.6.10", diff --git a/requirements_all.txt b/requirements_all.txt index dd4435b3a..75ed6f98d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -25,7 +25,7 @@ ifaddr==0.2.0 mashumaro==3.14 memory-tempfile==2.2.3 music-assistant-frontend==2.10.4 -music-assistant-models==1.1.15 +music-assistant-models==1.1.16 orjson==3.10.12 pillow==11.0.0 pkce==1.0.3