Skip to content

Commit

Permalink
Update media-player.ts to display artist name as backup secondary tit…
Browse files Browse the repository at this point in the history
…le (#22039)

* Update media-player.ts to display artist name for playlist if playlist name unavailable

* Run prettier
  • Loading branch information
rajlaud authored Sep 23, 2024
1 parent 7f868c8 commit a759767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/media-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!;
Expand Down

0 comments on commit a759767

Please sign in to comment.