2017-12-24, 12:49
I was privately asked
My reply was:
Adding properties to the JSON API is not hard at all, but there are issues with this particular request and you need to say more about what you think such a property would contain and how you want to use it.
While historically for artist art Kodi assumes that all artists have a unique path beneath which all their music is located, this often is not true. For example think of albums with more than one album artist i.e. collaborations, or classical music, having larger music collections split across multiple music sources, or artists that only apppear on compliation albums or as guest artist featured on albums by others. This is something I am reworking for v18, where all artists will have a single separate folder location for artwork, but related music can be in multiple other places.
Hence I think in future JSON API will be able to provide the folder for default artist artwork (and NFO files) if that is what you want, but that there is no such thing as artist path for the music.
hmann333 Wrote:How hard would it be to add a "file" or "path" property to the Audio.Fields.Artist object so that it can be returned with the AudioLibrary.GetArtists. This is something that appears to be in the Video.Fields.TvShow object which is returned by VideoLibrary.GetTvShows method and already appears to be present in the Artist.cpp model as strPath.Looks like a simple JSON API question, but there are deeper aspects that are worth giving a wider public view.
My reply was:
Adding properties to the JSON API is not hard at all, but there are issues with this particular request and you need to say more about what you think such a property would contain and how you want to use it.
While historically for artist art Kodi assumes that all artists have a unique path beneath which all their music is located, this often is not true. For example think of albums with more than one album artist i.e. collaborations, or classical music, having larger music collections split across multiple music sources, or artists that only apppear on compliation albums or as guest artist featured on albums by others. This is something I am reworking for v18, where all artists will have a single separate folder location for artwork, but related music can be in multiple other places.
Hence I think in future JSON API will be able to provide the folder for default artist artwork (and NFO files) if that is what you want, but that there is no such thing as artist path for the music.