by acroyear » Sat Apr 15, 2017 3:18 am
Get artists gets you the "indexes" - the list of artists grouped by first letter (give or take what your site's indexes are set to). You can use that to create a browsing page.
There are two sets of 'ID's for the layers that get you to songs (which have the same ID in both modes)
ID3 - getArtists, getAlbums,search3 - these ignore your physical layout of your folders and strictly uses the tags within the files to sort by.
musicDirectory - getIndexes, getMusicDirectory, search2 - these follow the physical directory structure of your files. Though the UI presumes that it is artist->album, it doesn't have to be. Albums split into "CD1" and "CD2" stay that way (the ID3 version will combine them if they have the same album name and artist name).
For many, these may be the same, esp if you have your folders pointing to your iTunes folder or something similar.
So if you're using search2, you need to use getMusicDirectory on the results, not getArtist, in order to get the artists album directories, inside which you again call getMusicDirectory to get the songs.
If you are using search3, then you can use getArtist against the artist ID or getAlbum against the albumID.
yeah, a little confusing, but there we are. The ID3 endpoints were added to support clients that wanted it, but the official Web UI and Android App ignore them.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/