Handle MPD songs with multiple artists (#68759)

This commit is contained in:
patagona 2022-03-29 09:10:21 +02:00 committed by GitHub
parent 557fa198d8
commit e85fb87438
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,7 +265,10 @@ class MpdDevice(MediaPlayerEntity):
@property
def media_artist(self):
"""Return the artist of current playing media (Music track only)."""
return self._currentsong.get("artist")
artists = self._currentsong.get("artist")
if isinstance(artists, list):
return ", ".join(artists)
return artists
@property
def media_album_name(self):