Scraping artist MBID (PR#12120)

I have a concern about the PR as relates to scraper adding Artist MBID to the music database.

Currently, Musicbrainz has the idea of artist alias, which isn’t implemented in Kodi database. As a result, it is possible that user tags include an artist name string with an MBID that conflicts with the primary artist name string found on Musicbrainz. There is an option in Kodi “prefer online information” which will normalize the artist name string to the Musicbrainz primary name. However, if the user does not set this switch, the tag name string is retained in the database (with or without MBID).

So my question is what happens if

1. User has tagged an artist name string and MBID. Subsequently scraper runs and finds album containing the track with a different name string but identical MBID. What happens in the database?

2. User has tagged an artist name string and no MBID. Again scraper runs and finds album containing the track with a different name string and MBID. What happens in the database?

3. As a follow on to 2, assume after scraping user adds new track with the same artist name string as in 2, but now user also has tagged the MBID then updates the database. What happens in the database?

My experience in the past (through 17.1) is that once an incorrect MBID (incorrect from the user’s perspective) is tied to an artist string name, it is impossible to fix without removing all tracks containing that artist in any role, cleaning the database, then restoring and scanning the tracks (after correcting track tags).

scott s.
.