2019-02-24, 22:15
I'm looking for a way to (semi-) automatically clean the music library of remnants that the official cleaning process is unable to delete. I would like to avoid clearing or resetting the library as well as deep rescraping.
Mostly, remnants are the kind of artists that initially didn't have a MBID and were added through a search process and were wrongly identified at that point. For some of those artists I have later added MBIDs. Anyway, I have just exported artists to the artist information folder and I can see that there are several items created for the same group name but with some strings attached.
For example, I have a music files for a group called "Act" (Claudia Brücken, etc.). Initially, it didn't have an MBID and Kodi associated it with a swedish progressive rock group named "A.C.T." by way of a "guessing" lookup (or maybe I did a manual lookup, don't remember). I then did a manual correction and later added an MBID in the hopes that it would self-correct upon the next tag scan.
Now there are actually two artists with two different MBIDS in the "artist" table which shouldn't happen. IMHO when doing a deep rescan (="Do full tag scan even when music files are unchanged") Kodi should also check against existing table entries in the "artist", "album artist" and "album" tables to match the network/local path of the album against the database to make sure no two entries exist for the same object. (When an object is removed from the "album" table the associated "album artist" entry is removed as well, I think)
I think that kind of sanity check is missing so far and an addition would go a long way toward having a clean library - even if it means taking a bit more time. So maybe a way to achieve this when "Do full tag scan even when music files are unchanged" is selected would be to first remove all objects associated with this album and/or path and then recreate them with the newly found tags.
What do you think?
Mostly, remnants are the kind of artists that initially didn't have a MBID and were added through a search process and were wrongly identified at that point. For some of those artists I have later added MBIDs. Anyway, I have just exported artists to the artist information folder and I can see that there are several items created for the same group name but with some strings attached.
For example, I have a music files for a group called "Act" (Claudia Brücken, etc.). Initially, it didn't have an MBID and Kodi associated it with a swedish progressive rock group named "A.C.T." by way of a "guessing" lookup (or maybe I did a manual lookup, don't remember). I then did a manual correction and later added an MBID in the hopes that it would self-correct upon the next tag scan.
Now there are actually two artists with two different MBIDS in the "artist" table which shouldn't happen. IMHO when doing a deep rescan (="Do full tag scan even when music files are unchanged") Kodi should also check against existing table entries in the "artist", "album artist" and "album" tables to match the network/local path of the album against the database to make sure no two entries exist for the same object. (When an object is removed from the "album" table the associated "album artist" entry is removed as well, I think)
I think that kind of sanity check is missing so far and an addition would go a long way toward having a clean library - even if it means taking a bit more time. So maybe a way to achieve this when "Do full tag scan even when music files are unchanged" is selected would be to first remove all objects associated with this album and/or path and then recreate them with the newly found tags.
What do you think?