@@ -1523,17 +1523,43 @@ 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->playcount_ == other.d->playcount_ &&
|
||||
d->rating_ == other.d->rating_;
|
||||
d->cue_path_ == other.d->cue_path_;
|
||||
}
|
||||
|
||||
bool Song::IsMetadataAndMoreEqual(const Song &other) const {
|
||||
bool Song::IsStatisticsEqual(const Song &other) const {
|
||||
|
||||
return d->playcount_ == other.d->playcount_ &&
|
||||
d->skipcount_ == other.d->skipcount_ &&
|
||||
d->lastplayed_ == other.d->lastplayed_;
|
||||
|
||||
}
|
||||
|
||||
bool Song::IsRatingEqual(const Song &other) const {
|
||||
|
||||
return d->rating_ == other.d->rating_;
|
||||
|
||||
}
|
||||
|
||||
bool Song::IsFingerprintEqual(const Song &other) const {
|
||||
|
||||
return d->fingerprint_ == other.d->fingerprint_;
|
||||
|
||||
}
|
||||
|
||||
bool Song::IsArtEqual(const Song &other) const {
|
||||
|
||||
return d->art_automatic_ == other.d->art_automatic_ &&
|
||||
d->art_manual_ == other.d->art_manual_;
|
||||
|
||||
}
|
||||
|
||||
bool Song::IsAllMetadataEqual(const Song &other) const {
|
||||
|
||||
return IsMetadataEqual(other) &&
|
||||
d->fingerprint_ == other.d->fingerprint_ &&
|
||||
d->art_automatic_ == other.d->art_automatic_ &&
|
||||
d->art_manual_ == other.d->art_manual_;
|
||||
IsStatisticsEqual(other) &&
|
||||
IsRatingEqual(other) &&
|
||||
IsFingerprintEqual(other) &&
|
||||
IsArtEqual(other);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class Song {
|
||||
FileType_XM = 20,
|
||||
FileType_IT = 21,
|
||||
FileType_SPC = 22,
|
||||
FileType_VGM = 23,
|
||||
FileType_VGM = 23,
|
||||
FileType_CDDA = 90,
|
||||
FileType_Stream = 91,
|
||||
};
|
||||
@@ -390,7 +390,12 @@ class Song {
|
||||
|
||||
// Comparison functions
|
||||
bool IsMetadataEqual(const Song &other) const;
|
||||
bool IsMetadataAndMoreEqual(const Song &other) const;
|
||||
bool IsStatisticsEqual(const Song &other) const;
|
||||
bool IsRatingEqual(const Song &other) const;
|
||||
bool IsFingerprintEqual(const Song &other) const;
|
||||
bool IsArtEqual(const Song &other) const;
|
||||
bool IsAllMetadataEqual(const Song &other) const;
|
||||
|
||||
bool IsOnSameAlbum(const Song &other) const;
|
||||
bool IsSimilar(const Song &other) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user