mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-18 19:50:38 +01:00
Listenbrainz: don't send "various artists" as artist
This commit is contained in:
parent
b0580265ca
commit
a3ae9acebb
@ -464,8 +464,10 @@ void ListenBrainzScrobbler::Submit() {
|
||||
QJsonObject object_listen;
|
||||
object_listen.insert("listened_at", QJsonValue::fromVariant(item->timestamp_));
|
||||
QJsonObject object_track_metadata;
|
||||
if (item->albumartist_.isEmpty()) object_track_metadata.insert("artist_name", QJsonValue::fromVariant(item->artist_));
|
||||
else object_track_metadata.insert("artist_name", QJsonValue::fromVariant(item->albumartist_));
|
||||
if (item->albumartist_.isEmpty() || item->albumartist_.toLower() == "various artists")
|
||||
object_track_metadata.insert("artist_name", QJsonValue::fromVariant(item->artist_));
|
||||
else
|
||||
object_track_metadata.insert("artist_name", QJsonValue::fromVariant(item->albumartist_));
|
||||
object_track_metadata.insert("release_name", QJsonValue::fromVariant(item->album_));
|
||||
object_track_metadata.insert("track_name", QJsonValue::fromVariant(item->song_));
|
||||
object_listen.insert("track_metadata", object_track_metadata);
|
||||
|
Loading…
Reference in New Issue
Block a user