Send display artist name for the scrobbled track (instead of the first artist)
This commit is contained in:
@@ -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() };
|
||||
|
||||
Reference in New Issue
Block a user