mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Handle MPD songs with multiple artists (#68759)
This commit is contained in:
parent
557fa198d8
commit
e85fb87438
@ -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…
x
Reference in New Issue
Block a user