From 1223469be93a16e36d4e69c2d5a81c20418820c8 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 30 Oct 2021 19:06:46 +0200 Subject: [PATCH] Song: Add playcount and rating to `Song::IsMetadataEqual()` --- src/core/song.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 9f50db77..eb3e2230 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -1588,7 +1588,9 @@ bool Song::IsMetadataEqual(const Song &other) const { d->bitrate_ == other.d->bitrate_ && d->samplerate_ == other.d->samplerate_ && d->bitdepth_ == other.d->bitdepth_ && - d->cue_path_ == other.d->cue_path_; + d->cue_path_ == other.d->cue_path_ && + d->playcount_ == other.d->playcount_ && + d->rating_ == other.d->rating_; } bool Song::IsMetadataAndMoreEqual(const Song &other) const {