Posts: 22
Joined: Jan 2016
Reputation:
0
tommyp
Junior Member
Posts: 22
2021-04-24, 17:43
(This post was last modified: 2021-04-25, 11:16 by DaveBlake.)
When importing one Artist with two genres, the media library/database seems to drop the artist. Case in point: The Kinks. I tend to think they are a Rock genre, but their song "Father Christmas" is a Christmas genre. If I import all of the Kinks (genre=rock) less "Father Christmas" (genre=christmas), the Kodi music database sees The Kinks. Once I add Father Christmas to the library, then the Kinks disappear from any part of the library (it's in files but not in any genres). For laughs, I changed the ID tag of Father Christmas to be The Kinks2 and all is fine. Is there a database problem with one artist who has 2 or more genres? I really don't want to assign a rock genre to a Christmas song and I'm sure there are other hidden gems with this same problem (The Alarm, John Lennon, Ted Nugent and Twisted Sister come to mind).
Posts: 22
Joined: Jan 2016
Reputation:
0
tommyp
Junior Member
Posts: 22
Thanks Dave. I think you are right. I was toying around with custom userdata/library/music/genres.xml and userdata/library/music/artists.xml files. Things seem to break if I add a rule that the genre "doesnotcontain" the christmas value. Once I put the original genres.xml and artists/xml files back the missing artists were back. Is it not possible to modify those two files or am I not able to exclude/filter certain genres? Or should I post a message on the [How to] library node examples thread?
Posts: 4,545
Joined: Jun 2015
Reputation:
269
OK, so the problem is a customised node not giving the results you want or expect, that makes much more sense. I'm doing to edit the thread title to reflect that.
Yes you can edit any of the default xxxx.xml library nodes in the system folder, but they will get wiped with any upgrade you later do. I would recommend that if you want to have custom nodes then you copy all of what is in the system folder for music into userdata/library/music and edit those, or to experiement add new variations, rearrange the layout etc.
Excluding genres the current logic is very limited. I have had work on the backburner to improve it for over 3 years... one day.
In effect with "doesnotcontain" "christmas" you have created a rule that says exclude those artists with songs with genre "Christmass", the Kinks do have such a song hence they are not listed.
Posts: 22
Joined: Jan 2016
Reputation:
0
tommyp
Junior Member
Posts: 22
Thanks Dave. On an additional note, I get bad results if I create another custom node where the genre "contains" christmas (I see all of the Kinks songs). Given the state of the world, playing the song Low Budget could be pretty funny at christmas time! lol
On the good side, this issue doesn't happen with smart playlists.