2019-12-09, 11:09
Is it possible to create folder type nodes based on path? Or is it possible to have multiple sources within one node?
parent node mymusic
node <path>musicdb://sources/30/? sourceid=30</path>
node <path>musicdb://sources/40/?sourceid=40</path>
parent node mymusic
parent node Music
node
node
parent node Comedy,
node
node
<?xml version='1.0' encoding='UTF-8'?>
<node type="filter">
<label>artist</label>
<content>artists</content>
<rule field="artist" operator="is">
<value>Adam Harvey</value>
</rule>
<rule field="artist" operator="is">
<value>Beccy Cole</value>
</rule>
<match>any</match>
<rule field="artist" operator="is">
<value>Graeme Connors</value>
</rule>
</node>
Side note Kodi 19+ atm has issues with the library node editor.
python 3 has bits removed or replaced and will need a workaround
from htmlentitydefs import name2codepoint
The htmlentitydefs module has been renamed to html.entities in Python 3.
from urlparse import parse_qs
The urlparse module is renamed to urllib.parse in Python 3
parent node mymusic
node <path>musicdb://sources/30/? sourceid=30</path>
node <path>musicdb://sources/40/?sourceid=40</path>
parent node mymusic
parent node Music
node
node
parent node Comedy,
node
node
<?xml version='1.0' encoding='UTF-8'?>
<node type="filter">
<label>artist</label>
<content>artists</content>
<rule field="artist" operator="is">
<value>Adam Harvey</value>
</rule>
<rule field="artist" operator="is">
<value>Beccy Cole</value>
</rule>
<match>any</match>
<rule field="artist" operator="is">
<value>Graeme Connors</value>
</rule>
</node>
Side note Kodi 19+ atm has issues with the library node editor.
python 3 has bits removed or replaced and will need a workaround
from htmlentitydefs import name2codepoint
The htmlentitydefs module has been renamed to html.entities in Python 3.
from urlparse import parse_qs
The urlparse module is renamed to urllib.parse in Python 3