display titles from metadata

This commit is contained in:
SrGooglo 2023-08-22 23:41:06 +00:00
parent 2fe064e68a
commit bf3d90e8d1

View File

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