Send display artist name for the scrobbled track (instead of the first artist)

This commit is contained in:
emeric
2024-02-11 15:18:46 +01:00
parent 6b1fd9c841
commit d20b02fc33
@@ -94,7 +94,7 @@ namespace Scrobbling::ListenBrainz
Wt::Json::Object trackMetadata;
trackMetadata["additional_info"] = std::move(additionalInfo);
trackMetadata["artist_name"] = Wt::Json::Value{ artists.front()->getName() };
trackMetadata["artist_name"] = Wt::Json::Value{ std::string{ track->getArtistDisplayName() } };
trackMetadata["track_name"] = Wt::Json::Value{ track->getName() };
if (track->getRelease())
trackMetadata["release_name"] = Wt::Json::Value{ track->getRelease()->getName() };