Skip to content

Commit

Permalink
chore: bump models and use new helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Jc2k committed Jan 13, 2025
1 parent 21fb4e7 commit 3430d11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions music_assistant/providers/fanarttv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3430d11

Please sign in to comment.