No worries @
vicmanpergar, this thread turned into a discussion of genre, artist, album and song filtering, and how UI works quite early on. I don't think the OP will mind.
From a general user perspective I so want to say yes what you say is right. It is reasonable from what I have said so far, but I have been simplifying a little to aid understanding, now I am going to get exact.
Those of a nervous disposition stop reading now
An example will help, let's say in our music collection we have
Code:
Artist1
Abum1
song1 genre A / B
song2 genre A
song3 genre A / C / F
Abum2
song1 genre D
song2 genre A / C
song3 genre B / E
After scanning these music files the Genres node will list genre values A, B, C, D, E, F
When you click on one of the genre values you get a list of artists that have
songs with that genre. Artist itself does not have a genre value at all (we have not scraped any, but if we did it would just be displayed on the info screen).
Clicking on any of genres A, B, C, D, E, F would show Artist1.
Then if you click on Artist1, having come from genre X, you will see those albums by artist1 with songs with that genre.
So in our example if we come from genre "A" through Artist1 we will see Album1 and Album2
If we come from genre "D" through Artist1 we will see only Album2
However, just to complicate matters, unlike artists, albums do have genre(s) as derrived from the music files tags stored in the database. This is set to the genre(s) of the last song on that album.
In our example Album1 will have genres A, C, F and Album2 genres B, E stored and show on the album info dialog.
This may seem odd. There is a "Todo" comment in the code
"in future we may wish to union up the genres, for now we assume they're the same". To be fair the songs from an album usually do have the same genre, so the assumtion is not too bad. Also the way song genre is used all the time this simplification practically has no impact.
If you should scrape albums from NFO (I don't think the online sources provide genre?) and fetch album genre then this gets written into one part of the database but not another. It will show on album information, but is not used in queries, and the original values derrived from music files will still be there just hidden. But remember none of these actually have an effect on what is fitered. Frankly it is a mess, but not one that users see.
Ok back to our list of albums reached from selecting a genre and then an artist (with songs of that genre). What happens when we click on an album? It show the songs on that album with that genre.
If we started at Genre "D", through Artist1 and Album2 we will see only song1 listed.
If we started at Genre "A", through Artist1 and Album1 we will see song1, song2, and song3.
If you use a remote app (Kore, Yatse, Remote for iOS) or web interface (e.g. Chorus), anything that uses the JSON interface onto Kodi then how that navigates and displays genre may be a bit different to above.
OK, it's safe to come out from behind the sofa now...