v17 Nodes issue in Krypton
#1
Hi,

Need help with a nodes issue in Krypton. In the past I set up an 'album series' node in userdata/library/music/Album Series with various xml playlists basically to filter albums on various title contents and this worked fine. Decided recently to create 'Record labels' folder and various playlist on record label. But this time kodi doesn't seem to find 'Record labels' under 'music library' mainly in setting up widgets and menu items. I can go to music library and it shows 'Album Series' & 'Music' as options but no 'Record Labels'.

But I can do a custom menu item, via shortcuts, with ActivateWindow(Music,"library://music/Record Labels/",return) and that menu option works fine and opens up the folder with all the playlists.

I've checked skin and shortcuts and can't see any specific setup for Kodi to see 'Album Series' folder, I followed Zags guidelines and it worked first time, but attempting to replicate to 'Record Labels' and Kodi doesn't seen to find that sub-folder?

Anyone got any ideas, has anyone done multiple folders with multiple playlist xmls in each in /library/music and had it work in that Kodi sees all the folders?

I'd like to set a widget to it, to show the labels, but as I can't find it under 'Music Library' then I can't set target in shortcuts so even though "library://music/Record Labels/" works as custom and the widgets displays ok, it doesn't action as target is "".

Thanks,

Mike.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#2
Mike, I may be a little too far into my weekend happy hour but I'm not sure what you want to do. Got an example record lable node?
Reply
#3
Hi Dave,

I first created /Ablum Series and then created 17 playlist xmls like this:

<?xml version='1.0' encoding='UTF-8'?>
<node order="1" type="filter">
    <label>Back to Mine</label>
    <content>albums</content>
    <rule field="album" operator="contains">
        <value>Back to Mine</value>
    </rule>
    <order direction="ascending">album</order>
    <icon>L:\Kodi\Icons\backtomine.jpg</icon>
</node> 

This worked fine, I could go into Kodi, and find Album Series and use as a menu option and widget options no problem.

So now create /Record Labels with at the moment 15 playlist xmls like this:

<?xml version='1.0' encoding='UTF-8'?>
<node order="2" type="albums">
    <label>Hooj Choons</label>
    <content>albums</content>
    <rule field="label" operator="contains">
        <value>Hooj Choons</value>
    </rule>
    <order direction="ascending">album</order>
    <icon>L:\Kodi\Icons\hooj.jpg</icon>
</node> 

But when going into Kodi there is no sign of 'Record Labels' as an option, but it still shows 'Album Series'

I recently tried changing node order to  '2' as all entries in Album Series where '1', and changed type from 'filter' to 'albums' but sill no show in Kodi?

Mike.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#4
The subtle syntax differences between smart playlists and custom nodes can catch you out.
So while as a smart playlist you would have a .xsp containing
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="albums">
    <name>Record lable EMI</name>
    <match>all</match>
    <rule field="label" operator="contains">
        <value>EMI</value>
    </rule>
</smartplaylist>

As a custom node this needs to be a .xml with
Code:
<?xml version='1.0' encoding='UTF-8'?>
<node order="2" type="filter">
<label>Record lable EMI</label>
<icon>L:\Kodi\Icons\hooj.jpg</icon>
<content>albums</content>
<order direction="ascending">album</order>
    <match>all</match>
    <rule field="label" operator="contains">
        <value>EMI</value>
    </rule>
</node>

That is change type="albums" to type = "filter" and it should work.
Reply
#5
I'll ask the maybe obvious, did you restart Kodi after creating the nodes? Since you've made nodes before I guess you know to do this.
Reply
#6
Have reset to filter, albums was just a test and did break the playlists. Restarted kodi several times and even dropped folders in leia, have version installed as portable and same result with alpha version, just doesn't see new folder?
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#7
Mike, which new folder is not shown?
Since you are making a set I guess you have a number of <recordlabel>.xml files, one for each label. You put all those in a subfolder in userdata/library/music e.g.  userdata/library/music/labelset. That subfolder also needs an index.xml file, along side all the label xml files, to tell Kodi how to show that item submenu.
Code:
<?xml version='1.0' encoding='UTF-8'?>
<node order="4" type="folder">
    <label>Record Label Sets</label>
    <icon>DefaultMusicSongs.png</icon>
</node>
is that the issue?
Reply
#8
Hi Dave,

Yeah that's it, completely forgot about the index.xml and it never registered when looking into it. All sorted now and thanks for pointing it out.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#9
@Mike_Doc can you add to the Node example thread? I think thats a nice one.

https://forum.kodi.tv/showthread.php?tid=257378
Reply

Logout Mark Read Team Forum Stats Members Help
Nodes issue in Krypton0