2018-07-25, 04:51
As a possible property for AudioLibrary.GetArtists and AudioLibrary.GetArtistDetails, so that add-ons and other Kodi-related tools can more easily reuse the same directory.
Calculating the artist folder exactly like Kodi does is quite the process, considering the artist name needs cleaned for the file system and maybe they need a MBID slug to separate two artists with the same name. Since Kodi already does the hard work - and can do the second part significantly faster than we can accomplish with JSON-RPC - exposing it to other tools reduces the chance we'll end up with multiple slightly-different folders for one artist in some cases.
Edit: The result could be a full path like "smb://server/path/to/centralinfo/artists/David Cross_e256/", and maybe could even be a list to include the old artist path if one can be determined, because sometimes we'll want to find info in each path that exists and other times we'll want to create the central folder if it doesn't exist.
Calculating the artist folder exactly like Kodi does is quite the process, considering the artist name needs cleaned for the file system and maybe they need a MBID slug to separate two artists with the same name. Since Kodi already does the hard work - and can do the second part significantly faster than we can accomplish with JSON-RPC - exposing it to other tools reduces the chance we'll end up with multiple slightly-different folders for one artist in some cases.
Edit: The result could be a full path like "smb://server/path/to/centralinfo/artists/David Cross_e256/", and maybe could even be a list to include the old artist path if one can be determined, because sometimes we'll want to find info in each path that exists and other times we'll want to create the central folder if it doesn't exist.