Kodi Community Forum
[HOW TO] Library Node Examples - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: [HOW TO] Library Node Examples (/showthread.php?tid=257378)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


RE: [HOW TO] Library Node Examples - DaveBlake - 2016-06-02

So sorry Govnah, path is only available as a rule for albums type smart playlists and custom nodes in Kodi 17.

I did the one line code change that added this back in Sept 2015, but it turns out that it didn't get merged into Jarvis. I have been looking at dev code so much I can't remember clearly what is available when.

As a consolation guys I will add path as a rule for artists type playlists and nodes too (in 17, as 16 under RERO is now frozen). So jam tomorrow as always. For now in 16 all you can do is sort the songs by album Sad


RE: [HOW TO] Library Node Examples - Govnah - 2016-06-02

(2016-06-02, 19:06)DaveBlake Wrote: So sorry Govnah, path is only available as a rule for albums type smart playlists and custom nodes in Kodi 17.

I did the one line code change that added this back in Sept 2015, but it turns out that it didn't get merged into Jarvis. I have been looking at dev code so much I can't remember clearly what is available when.

As a consolation guys I will add path as a rule for artists type playlists and nodes too (in 17, as 16 under RERO is now frozen). So jam tomorrow as always. For now in 16 all you can do is sort the songs by album Sad

Tested in Krypton and works fine. I understand that Jarvis is frozen which means no more code changes, but is this something that could be added via a config file (advancedsettings.xml i.e)?

Thanks

NP, thanks for the help and will wait for Krypton.


RE: [HOW TO] Library Node Examples - docwra - 2016-12-02

Did the path rule get added for artists in the end?

I was looking at this and couldnt find it the other day.


RE: [HOW TO] Library Node Examples - BobCratchett - 2016-12-02

You can certainly use the node editor to create artist-based-path-nodes (e.g. musicdb://artists/), or use artistid as a component for a path-based node (e.g. ?artistid=x) - I don't use Kodi for music, though, so can't say I've actually tested it.

What happened to Zag Huh


RE: [HOW TO] Library Node Examples - Don_black00 - 2016-12-05

How can I create a music node from a addon for a weekly release.



https://github.com/michaelfdeberry/plugin.audio.datpiff


RE: [HOW TO] Library Node Examples - BobCratchett - 2016-12-06

For video nodes, you can set 'Date Added' 'Within the last' x days, however, I'm not aware of any equivalent for music nodes - I suspect such would need adding to core.


RE: [HOW TO] Library Node Examples - DaveBlake - 2016-12-06

(2016-12-02, 12:30)docwra Wrote: Did the path rule get added for artists in the end?

I was looking at this and couldnt find it the other day.
Yes, you can add a path rule to an "artists" smart playlist in v17. An example filter type node would be

Code:
<?xml version='1.0' encoding='UTF-8'?>
<node order="2" type="filter" visible="Library.HasContent(Music)">
       <label>Artists Path Bax</label>
       <content>artists</content>
       <order direction="ascending">artist</order>
        <rule field="path" operator="startswith">
          <value>N:\MusicClassical\Bax\</value>
        </rule>
</node>

But I have to say I am a bit confused how to do that with the node editor. Bob Cratchett's comment relates to editing folder type custom nodes - they have a <path> entry, but that is totally different to a path rule in filter type nodes.

Edit: ah, "path" as a field when editing rules for an "artists" filter type node needs adding to the editor. Could you do that Bob? Similar to how content of songs and albums rules can have field path.


RE: [HOW TO] Library Node Examples - DaveBlake - 2016-12-06

(2016-12-05, 23:40)Don_black00 Wrote: How can I create a music node from a addon for a weekly release.

Unfortunately you can't without core changes, the file datetime ( what gets stored in "dateadded" regardless of when the music was first added to the library, because of the delete/insert approach) is not available as a playlist rule.

An addon could maybe use a JSON API call to get the RecentlyAdded... songs or albums, but not sure of the details to get that working.


RE: [HOW TO] Library Node Examples - docwra - 2017-03-16

One from DaveBlake in another thread:

Show all albums but exclude any classed as a compilation
Code:
<?xml version='1.0' encoding='UTF-8'?>
<node type="folder">
    <label>Albums (No Compilations)</label>
    <icon>DefaultMusicAlbums.png</icon>
    <path>musicdb://albums/?compilation=false</path>
</node>



RE: [HOW TO] Library Node Examples - leepenny - 2017-04-14

OK so I used zags very useful node for A to Z - brilliant BTW - added some icons and it looks really cool
Image

only problem I see is that movies with an article - e.g. 'A' or 'THE' aren't sorted correctly

Here is a screenshot of the movies beginning with 'T' - it would be nice to be able to have movies beginning with 'THE' or 'A' to be distributed correctly throughout the database

Image

I have 'ignore articles' turned on in settings so I'm not sure what to do - the rest of my database is cool and nicely spread out but the 'T' section is still a little large for quick browsing (315 items) - any ideas ?


RE: [HOW TO] Library Node Examples - poul_l322 - 2017-05-09

thankyouuu for this,


RE: [HOW TO] Library Node Examples - clemmy - 2017-05-10

Nice information here. Didn't know the existence of nodes but they look cool, I'll start experimenting over the next days.

However, I have already a question: how do they play with a library shared between multiple devices using MySQL database? Do I need to copy my custom XML over each device?


RE: [HOW TO] Library Node Examples - docwra - 2017-05-10

(2017-05-10, 08:10)clemmy Wrote: Nice information here. Didn't know the existence of nodes but they look cool, I'll start experimenting over the next days.

However, I have already a question: how do they play with a library shared between multiple devices using MySQL database? Do I need to copy my custom XML over each device?

Yes you do


RE: [HOW TO] Library Node Examples - Furore - 2017-05-25

Hi! I created a new movie folder, copied \userdata\library\video\movies folder to \userdata\library\video\CMovie and fixed index.xml file. Then with Library Node Editor add a path rule, so that Concerts and Kids movies are not visible. Everything else is fine but how to set default folder for custom movie node?

20:14:12.681 T:11180 DEBUG: Activating window ID: 10025
20:14:12.941 T:11180 DEBUG: ------ Window Deinit (Home.xml) ------
20:14:12.988 T:11180 DEBUG: ------ Window Init (MyVideoNav.xml) ------
20:14:12.988 T:11180 INFO: Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
20:14:13.124 T:11180 DEBUG: CGUIMediaWindow::GetDirectory (videodb://movies/titles/)
20:14:13.124 T:11180 DEBUG: ParentPath = [videodb://movies/titles/]

20:16:06.876 T:11180 DEBUG: Activating window ID: 10025
20:16:06.877 T:11180 DEBUG: ------ Window Init (Pointer.xml) ------
20:16:07.116 T:11180 DEBUG: ------ Window Deinit (Home.xml) ------
20:16:07.157 T:11180 DEBUG: ------ Window Init (MyVideoNav.xml) ------
20:16:07.160 T:11180 DEBUG: CGUIMediaWindow::GetDirectory (library://video/CMovie/)
20:16:07.160 T:11180 DEBUG: ParentPath = [library://video/CMovie/]

I want it goes straight to Title folder so parentpath should be library://video/CMovie/titles. Can this be fixed?


RE: [HOW TO] Library Node Examples - docwra - 2017-05-26

I think you will need to edit the skin manually.