Handle MPD songs with multiple artists (#68759)
This commit is contained in:
parent
557fa198d8
commit
e85fb87438
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue