"""Parse artist and artistInfo into a Music Assistant Artist."""
metadata: MediaItemMetadata = MediaItemMetadata()
- if sonic_artist.artist_image_url:
+ if sonic_artist.cover_art:
metadata.add_image(
MediaItemImage(
type=ImageType.THUMB,
- path=sonic_artist.artist_image_url,
+ path=sonic_artist.cover_art,
provider=instance_id,
- remotely_accessible=True,
+ remotely_accessible=False,
)
)
- if sonic_artist.cover_art:
+ if sonic_artist.artist_image_url:
metadata.add_image(
MediaItemImage(
type=ImageType.THUMB,
- path=sonic_artist.cover_art,
+ path=sonic_artist.artist_image_url,
provider=instance_id,
- remotely_accessible=False,
+ remotely_accessible=True,
)
)
+
if sonic_info:
if sonic_info.biography:
metadata.description = sonic_info.biography
'grouping': None,
'images': list([
dict({
- 'path': 'https://demo.org/image.jpg',
+ 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': True,
+ 'remotely_accessible': False,
'type': 'thumb',
}),
dict({
- 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
+ 'path': 'https://demo.org/image.jpg',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': False,
+ 'remotely_accessible': True,
'type': 'thumb',
}),
]),
'grouping': None,
'images': list([
dict({
- 'path': 'https://demo.org/image.jpg',
+ 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': True,
+ 'remotely_accessible': False,
'type': 'thumb',
}),
dict({
- 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
+ 'path': 'https://demo.org/image.jpg',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': False,
+ 'remotely_accessible': True,
'type': 'thumb',
}),
dict({
'grouping': None,
'images': list([
dict({
- 'path': 'https://demo.org/image.jpg',
+ 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': True,
+ 'remotely_accessible': False,
'type': 'thumb',
}),
dict({
- 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
+ 'path': 'https://demo.org/image.jpg',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': False,
+ 'remotely_accessible': True,
'type': 'thumb',
}),
]),
'grouping': None,
'images': list([
dict({
- 'path': 'https://demo.org/image.jpg',
+ 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': True,
+ 'remotely_accessible': False,
'type': 'thumb',
}),
dict({
- 'path': 'ar-37ec820ca7193e17040c98f7da7c4b51_0',
+ 'path': 'https://demo.org/image.jpg',
'provider': 'xx-instance-id-xx',
- 'remotely_accessible': False,
+ 'remotely_accessible': True,
'type': 'thumb',
}),
dict({