[HOW TO] Library Node Examples
(2019-12-08, 14:07)Uatschitchun Wrote: I tried using folder type nodes, but don't know how to restrict them by path?!

If you've added different sources to your library, you can use a folder type node to pull out individual sources but you need to know the sourceid from the database (you can get it by navigating manually to the source you want, and looking in Kodi's debug log).

For instance, I have added a source for stage musicals and all the albums for that are in a specific path.  To get that source in a folder type node, I do this.

xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="150" type="folder">
    <label>Stage Musicals</label>
    <icon>DefaultMusicSources.png</icon>
    <path>musicdb://sources/30/?sourceid=30</path>
</node>

That then takes me to all the artists in that source, and from there to albums.  The visibility condition that you were asking about is simply to ensure that nodes are not displayed if there is no content to fill them with.  E.g. The compilations or boxset nodes are not present if you don't have any compilations or boxsets.

You can also do it this way (which is easier and takes you to albums not artists)

xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="150" type="folder">
    <label>Stage Musicals</label>
    <icon>DefaultMusicSources.png</icon>
    <path>musicdb://albums/?source=StageMusicals</path>
</node>

I guess it all depends on how your stuff has been added.  If you've added a source of say, comedy and another of AudioBooks then you should be able to pull out the contents of those sources in the same way.  BTW, it's not the size of the db that's the problem with filtering, it's the way Kodi itself builds the filter(s).  I know work is ongoing though to change this to be done in the db, which should be much faster.  There is already a PR for the initial part of the changes.
Learning Linux the hard way !!
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 CornBread96 - 2022-03-04, 23:08
RE: Library Node Examples - by CornBread96 - 2022-03-04, 23:15
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 black_eagle - 2019-12-08, 14:49
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
[HOW TO] Library Node Examples - by leepenny - 2021-08-24, 14:41
[HOW TO] Library Node Examples - by leepenny - 2021-08-24, 15:37
RE: [HOW TO] Library Node Examples - by DiMag - 2022-02-26, 14:57
RE: [HOW TO] Library Node Examples - by DiMag - 2022-03-10, 09:48
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 11:00
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 11:09
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 12:44
RE: [HOW TO] Library Node Examples - by Zonal - 2022-08-27, 19:05
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 12:47
RE: [HOW TO] Library Node Examples - by Zonal - 2022-08-27, 19:11
RE: [HOW TO] Library Node Examples - by Zonal - 2022-08-27, 18:40
RE: [HOW TO] Library Node Examples - by DiMag - 2022-09-01, 08:57
RE: [HOW TO] Library Node Examples - by DiMag - 2023-02-13, 17:04
RE: [HOW TO] Library Node Examples - by PatK - 2022-11-11, 03:05
RE: [HOW TO] Library Node Examples - by DiMag - 2022-11-19, 12:16
RE: [HOW TO] Library Node Examples - by PatK - 2022-12-06, 20:08
RE: [HOW TO] Library Node Examples - by DiMag - 2023-01-15, 19:25
RE: [HOW TO] Library Node Examples - by DiMag - 2023-02-13, 13:38
RE: [HOW TO] Library Node Examples - by DiMag - 2023-01-12, 19:28
RE: [HOW TO] Library Node Examples - by DiMag - 2023-03-08, 13:42
RE: [HOW TO] Library Node Examples - by DiMag - 2023-03-10, 16:18
Logout Mark Read Team Forum Stats Members Help
[HOW TO] Library Node Examples5