display titles from metadata

This commit is contained in:
SrGooglo 2023-08-22 23:41:06 +00:00
parent a93527b681
commit 7388e3f866

View File

@ -229,15 +229,15 @@ class PlayerController extends React.Component {
</div>
<div className="player_controller_info_artist">
{
this.state.currentPlaying?.artist && <>
(this.state.currentPlaying?.metadata?.artist ?? this.state.currentPlaying?.artist) && <>
<h3>
{this.state.currentPlaying?.artist ?? "Unknown"}
{this.state.currentPlaying?.metadata?.artist ?? this.state.currentPlaying?.artist ?? "Unknown"}
</h3>
{
this.state.currentPlaying?.album && <>
(this.state.currentPlaying?.metadata?.album ?? this.state.currentPlaying?.album) && <>
<span> - </span>
<h3>
{this.state.currentPlaying?.album ?? "Unknown"}
{this.state.currentPlaying?.metadata?.album ?? this.state.currentPlaying?.album ?? "Unknown"}
</h3>
</>
}