Take labels into account to avoid merging unrelated albums, ref #550

This commit is contained in:
emeric
2024-11-13 18:41:24 +01:00
parent aef777002f
commit 0164038794
@@ -276,7 +276,8 @@ namespace lms::scanner
return candidateRelease->getName() == releaseInfo.name
&& candidateRelease->getSortName() == releaseInfo.sortName
&& candidateRelease->getTotalDisc() == releaseInfo.mediumCount
&& candidateRelease->isCompilation() == releaseInfo.isCompilation;
&& candidateRelease->isCompilation() == releaseInfo.isCompilation
&& candidateRelease->getLabelNames() == releaseInfo.labels;
}
Release::pointer getOrCreateRelease(Session& session, const metadata::Release& releaseInfo, const Directory::pointer& currentDirectory)