From a759767d794f02527d127802831e68d3caf0cb7a Mon Sep 17 00:00:00 2001 From: Raj Laud <50647620+rajlaud@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:08:18 -0400 Subject: [PATCH] Update media-player.ts to display artist name as backup secondary title (#22039) * Update media-player.ts to display artist name for playlist if playlist name unavailable * Run prettier --- src/data/media-player.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/media-player.ts b/src/data/media-player.ts index ce869bfde5da..11716181dfdb 100644 --- a/src/data/media-player.ts +++ b/src/data/media-player.ts @@ -245,7 +245,8 @@ export const computeMediaDescription = ( secondaryTitle = stateObj.attributes.media_artist!; break; case "playlist": - secondaryTitle = stateObj.attributes.media_playlist!; + secondaryTitle = + stateObj.attributes.media_playlist || stateObj.attributes.media_artist!; break; case "tvshow": secondaryTitle = stateObj.attributes.media_series_title!;