mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-22 05:38:36 +01:00
Song: Add xesam:userRating
in Song::ToXesam
This commit is contained in:
parent
fac4ad5313
commit
66154bb51e
@ -1606,6 +1606,10 @@ void Song::ToXesam(QVariantMap *map) const {
|
||||
AddMetadataAsList("xesam:composer", composer(), map);
|
||||
AddMetadata("xesam:useCount", static_cast<int>(playcount()), map);
|
||||
|
||||
if (rating() != -1.0) {
|
||||
AddMetadata("xesam:userRating", rating(), map);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Song::MergeUserSetData(const Song &other, const bool merge_playcount, const bool merge_rating) {
|
||||
|
Loading…
Reference in New Issue
Block a user