Remove Various Artists from recommendations

This commit is contained in:
emeric
2026-06-03 23:07:29 +02:00
parent 88c85291bc
commit 7ef19e4c06
2 changed files with 10 additions and 0 deletions
@@ -612,6 +612,11 @@ namespace lms::recommendation
});
db::Artist::find(session, db::Artist::FindParameters{}, [&](const db::Artist::pointer& artist) {
const auto mbid{ artist->getMBID() };
// skip "Various Artists" to avoid false artist matches
if (mbid && mbid->getAsString() == "89ad4ac3-39f7-470e-963a-56509c546377")
return;
std::unordered_set<db::TrackId> artistTrackIds;
{
@@ -142,6 +142,11 @@ namespace lms::recommendation
});
db::Artist::find(session, db::Artist::FindParameters{}, [&](const db::Artist::pointer& artist) {
const auto mbid{ artist->getMBID() };
// skip "Various Artists" to avoid false artist matches
if (mbid && mbid->getAsString() == "89ad4ac3-39f7-470e-963a-56509c546377")
return;
std::unordered_set<db::TrackId> artistTrackIds;
{