2016-06-09, 22:34
So I have tried searching old threads, finding out in the xbmc github sources, etc, and still don't understand how the library nodes work.
One problem, I haven't figured out where the xml files get parsed.
But in general questions I have are like this:
1. The files are organized as a folder tree with "music" at the root and a couple of child folders like "musicvideos" and ""musicroles". What is the significance of the folder hierarchy?
2. What are the allowed / dependencies of the <node> element attributes?
I see "order" which is obvious, and "visible" which I guess allows any legal kodi boolean. "Type" I guess is either "filter" or "folder". Is that all that is available for <node>?
3. I understand if 'type="folder"' then the child element <path> is required I assume exactly once?
4. What is the allowed syntax for the <path> element?
5. If 'type="filter"' are there any required child elements?
6. What is the purpose of the <content> child element? What are the legal values?
7. In looking at the code, I see an enum list of NODE_TYPE. It doesn't seem like many of these are actually used or am I wrong? Or, what is the significance of the NODE_TYPE (seems to control how the list container gets filled / grouped and what happens when you select a listitem, but anything else?)
8. I think the filter <rule> <limit> etc is explained fairly well for smart playlist and most examples I found in "how to create/edit nodes" focus on this aspect. But maybe there is more to this?
I'm trying to come up with some sane nodes for the new artist roles but I am struggling with how best to write these nodes. I tried to reverse engineer the library node editor addon but didn't get too far.
As an example, I would like to separate out songwriters from classical composers. Also for things like musical theater "soundtracks".
scott s.
.
One problem, I haven't figured out where the xml files get parsed.
But in general questions I have are like this:
1. The files are organized as a folder tree with "music" at the root and a couple of child folders like "musicvideos" and ""musicroles". What is the significance of the folder hierarchy?
2. What are the allowed / dependencies of the <node> element attributes?
I see "order" which is obvious, and "visible" which I guess allows any legal kodi boolean. "Type" I guess is either "filter" or "folder". Is that all that is available for <node>?
3. I understand if 'type="folder"' then the child element <path> is required I assume exactly once?
4. What is the allowed syntax for the <path> element?
5. If 'type="filter"' are there any required child elements?
6. What is the purpose of the <content> child element? What are the legal values?
7. In looking at the code, I see an enum list of NODE_TYPE. It doesn't seem like many of these are actually used or am I wrong? Or, what is the significance of the NODE_TYPE (seems to control how the list container gets filled / grouped and what happens when you select a listitem, but anything else?)
8. I think the filter <rule> <limit> etc is explained fairly well for smart playlist and most examples I found in "how to create/edit nodes" focus on this aspect. But maybe there is more to this?
I'm trying to come up with some sane nodes for the new artist roles but I am struggling with how best to write these nodes. I tried to reverse engineer the library node editor addon but didn't get too far.
As an example, I would like to separate out songwriters from classical composers. Also for things like musical theater "soundtracks".
scott s.
.