1
0
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:
Jonas Kvinge 2022-12-27 21:18:40 +01:00
parent fac4ad5313
commit 66154bb51e

View File

@ -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) {