[HOW TO] Library Node Examples
(2020-12-08, 09:30)Offsprin Wrote: ...the "Recently Added" is only showing the non-4K movies and I can't figure out what I'm doing wrong.
I see quite a bit of confusion in previous posts.

There are fundamentally 2 kinds of custom nodes - "folder" and "filter" - they are distinct and have different syntax and navigation behaviour.

1) "folder" type
These are very simple. They do NOT have <rule>, <content>, <group>, <match>, <limit> or <order> fields.
Only <label>, <icon> and <path> fields define a "folder" type node. They make use of a limited list of (internal to Kodi) virtual file paths which identify the node see https://kodi.wiki/view/Opening_Windows_and_Dialogs.

Example
Code:
<?xml version='1.0' encoding='UTF-8'?>
<node order="1" type="folder">
    <label>Recent Movies</label>
    <icon>DefaultRecentlyAddedMovies.png</icon>
    <path>videodb://recentlyaddedmovies/</path>
</node>
You can get some additional filtering on some folder type nodes by adding parameters to the path, but it is a side effect of how navigation within a node works internally and not intended as a user feature hence there is no official guide to how to use them. But they do have a use particularly if you want to filter artists or albums on the property of their songs.

2) "filter" type
These have the similar syntax to smart playlists and are defined by <label>, <icon> <rule>, <content>, <group>, <match>, <limit> or <order> fields. They do NOT have a <path> field. However some contents can have "path" rules that apply to a phyiscal music or video file location (but not to virtual file system paths)
For example (if all your 2160p movies are in the same folder, filter for that folder)
Code:
<?xml version='1.0' encoding='UTF-8'?>
<node order="9" type="filter">
    <label>Recent Movies 2160p</label>
    <content>movies</content>
    <match>all</match>
        <rule field="path" operator="contains">
        <value>2160p</value>
    </rule>
    <limit>25</limit>
    <order direction="descending">lastplayed</order>
</node>
Reply


Messages In This Thread
[HOW TO] Library Node Examples - by zag - 2016-01-22, 11:47
RE: Library Node Examples - by DaveBlake - 2016-01-22, 13:13
RE: Library Node Examples - by zag - 2016-01-22, 15:13
RE: Library Node Examples - by DaveBlake - 2016-01-24, 11:36
RE: Library Node Examples - by tkgafs - 2016-01-26, 11:21
RE: Library Node Examples - by DarkHelmet - 2016-01-26, 13:09
RE: Library Node Examples - by zag - 2016-01-26, 13:14
RE: Library Node Examples - by DarkHelmet - 2016-01-26, 14:42
RE: Library Node Examples - by zag - 2016-01-26, 14:52
RE: Library Node Examples - by annejones101 - 2020-02-15, 11:03
RE: Library Node Examples - by tkgafs - 2016-01-31, 12:06
RE: Library Node Examples - by DaveBlake - 2016-01-31, 12:34
RE: Library Node Examples - by DarkHelmet - 2016-01-31, 14:38
RE: Library Node Examples - by DaveBlake - 2016-01-31, 14:43
RE: Library Node Examples - by DaveBlake - 2016-01-31, 14:45
RE: Library Node Examples - by zag - 2016-01-31, 14:49
RE: Library Node Examples - by YamYam - 2020-03-10, 11:08
RE: [HOW TO] Library Node Examples - by zag - 2016-01-31, 15:33
RE: [HOW TO] Library Node Examples - by zag - 2016-01-31, 16:08
RE: [HOW TO] Library Node Examples - by zag - 2016-02-03, 10:45
RE: [HOW TO] Library Node Examples - by zag - 2016-02-24, 13:43
RE: [HOW TO] Library Node Examples - by zag - 2016-02-26, 17:36
RE: [HOW TO] Library Node Examples - by zag - 2016-02-27, 15:41
RE: [HOW TO] Library Node Examples - by zag - 2016-03-30, 22:12
RE: [HOW TO] Library Node Examples - by zag - 2016-03-31, 11:04
RE: [HOW TO] Library Node Examples - by zag - 2016-05-23, 21:29
RE: [HOW TO] Library Node Examples - by zag - 2016-05-23, 22:07
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-25, 14:45
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-30, 14:38
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-31, 15:56
RE: [HOW TO] Library Node Examples - by Er1c - 2018-05-12, 07:02
RE: [HOW TO] Library Node Examples - by DaVu - 2018-11-06, 15:53
RE: [HOW TO] Library Node Examples - by Alion - 2018-11-06, 18:09
RE: [HOW TO] Library Node Examples - by ronie - 2019-02-08, 12:20
RE: [HOW TO] Library Node Examples - by ronie - 2019-02-08, 13:19
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-13, 19:49
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-16, 05:31
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-17, 16:40
[HOW TO] Library Node Examples - by Finchy - 2019-06-21, 10:34
[HOW TO] Library Node Examples - by Finchy - 2019-06-21, 20:46
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-23, 04:51
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-24, 00:04
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-24, 18:38
RE: [HOW TO] Library Node Examples - by TimoJ - 2020-01-01, 19:58
RE: [HOW TO] Library Node Examples - by PatK - 2019-12-08, 22:38
RE: [HOW TO] Library Node Examples - by TimoJ - 2020-01-05, 15:21
RE: [HOW TO] Library Node Examples - by dkoh - 2020-11-21, 03:31
RE: [HOW TO] Library Node Examples - by DaveBlake - 2020-12-08, 10:54


Logout Mark Read Team Forum Stats Members Help
[HOW TO] Library Node Examples5
This forum uses Lukasz Tkacz MyBB addons.