mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Handle MPD songs with multiple artists (#68759)
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user