2024-11-09, 13:29
(2024-11-09, 12:14)HeresJohnny Wrote: I am guessing this is very old code that got left in as potentially useful when @DaveBlake restructured everything to use MBIds
You're guessing wrong then. The artist table does indeed contain ALL of the artists related to a given song but these are also linked to the roles table. Executing something like
sql:SELECT * from songartistsview WHERE songartistview.idSong = 1;
gives me a result of
So, I find all of that information useful. It was Dave that added all the role stuff in the first place. I also doubt that stuff gets duplicated particularly. If you take my example, artist 9 is Angus young, listed as both guitarist and writer. Two different roles with different id's but the same artistid. Therefore, Angus can appear in multiple songs in multiple roles, but has only one entry in the artist table.
(2024-11-09, 12:14)HeresJohnny Wrote: To force an update of artist info without clearing the library and re-scanning everything, one would reset the field "lastScraped" in the "artist" table of the "mymusicxx" database. After that it's a simple case of refreshing all artist info. If you attempt to refresh artist info without resetting that field, Kodi will only refresh those artist which haven't been scraped to the library yet.
Nope. Navigate to a list of artists and then
Context menu -> query info for all artists
will (re)scrape all your artists. Context menu -> change information provider
can re-scrape one artist, or if you use a smart playlist to select a group of artists, for just those artists displayed. If there is local information, you should be given the choice of using that, or refreshing from the internet, depending upon whether your scraper setting is local only or not. You can also do the same thing for a list of albums, which will refresh the album info. It's almost as if someone had thought we might want to update stuff eh ? It would be IMHO, foolish in the extreme to mess around in the music database without first understanding exactly how everything ties together. At times, this is not necessarily obvious immediately.