Remove Various Artists from recommendations
This commit is contained in:
@@ -612,6 +612,11 @@ namespace lms::recommendation
|
|||||||
});
|
});
|
||||||
|
|
||||||
db::Artist::find(session, db::Artist::FindParameters{}, [&](const db::Artist::pointer& artist) {
|
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;
|
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) {
|
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;
|
std::unordered_set<db::TrackId> artistTrackIds;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user