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 - Ceefaxer - 2023-03-10

Thanks I'll take a look. As a work around as I have limited genres anyway it seems I can make individual genre nodes in a parent node and then create a widget displaying these nodes and its snappy as expected. But that seems an unsustainable fudge.


RE: [HOW TO] Library Node Examples - DiMag - 2023-03-10

(2023-03-10, 10:25)Ceefaxer Wrote: ...and then create a widget displaying these nodes...
You mean one widget per (one) child node?


RE: [HOW TO] Library Node Examples - Ceefaxer - 2023-03-12

(2023-03-10, 16:18)DiMag Wrote:
(2023-03-10, 10:25)Ceefaxer Wrote: ...and then create a widget displaying these nodes...
You mean one widget per (one) child node?
Not really. You create a parent node called say genres and then create a variety of child nodes in that for each genre, you can then make one widget to look at the parent node and it lists the child genre nodes inside, and they work just fine, no loading time wait. Obviously its a ball ache to create, but I only use genres for audiobooks/radio/podcasts so the genre types are always going to be limited to around 10 or so. Its a fudge but I cant stand that loading time.


RE: [HOW TO] Library Node Examples - Ceefaxer - 2023-03-12

How does Edit Visibility work in the library node editor? Can you specify nodes to be hidden in a library view and still be linked to in other ways? What are the kind of things you can do with edit visibility?


RE: [HOW TO] Library Node Examples - Karellen - 2023-07-30

Code for a Favourite Actors node...

https://forum.kodi.tv/showthread.php?tid=373927&pid=3161188#pid3161188


RE: [HOW TO] Library Node Examples - Chalklands - 2024-04-09

Hi, can anybody post an example of a TV Episodes in progress node please?


RE: [HOW TO] Library Node Examples - LongMan - 2024-04-10

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<node order="6" type="filter" visible="True">
       <label>Incomplete</label>
       <icon>DefaultInProgressShows.png</icon>
       <content>episodes</content>
       <match>all</match>
           <rule field="inprogress" operator="true">
               <value></value>
           </rule>
       <limit>50</limit>
       <order direction="descending">lastplayed</order>
</node>


RE: [HOW TO] Library Node Examples - Chalklands - 2024-04-10

(2024-04-10, 16:49)LongMan Wrote: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<node order="6" type="filter" visible="True">
       <label>Incomplete</label>
       <icon>DefaultInProgressShows.png</icon>
       <content>episodes</content>
       <match>all</match>
           <rule field="inprogress" operator="true">
               <value></value>
           </rule>
       <limit>50</limit>
       <order direction="descending">lastplayed</order>
</node>
Thank you!
I will try this when I get home.


RE: [HOW TO] Library Node Examples - Younguns2005 - 2024-05-19

Hello all! Sorry if this is in the wrong location.
I have had Kodi up and running for years now, and the wife is filling up our media server with TV-Shows that are all based on a particular single 'pilot' show...i.e. Star Trek for instance.
I was wondering if there is a way to create a folder on the media server for just Star Trek based TV-Shows, and place all the spin-offs into that folder along with the episodes in their respective shows.

Example hard drive layout:
Mediaserver Drive -|
                                |- Star Trek-|
                                |                    |- TOS-|
                                |                  |           |-Season 1 with episodes
                                |                  |           |-Season 2    "          "
                                |                  |           |-Season 3    "          "
                                |                  |
                                |                  |- TNG-|
                                |                              |-Season 1    "          "
                                |                              |-Season 2    "          "
                                |-Walking Dead-|
                                |                          |- Walking Dead-|
                                |                          |                          |-Season 1    "          "
                                |                          |                          |-Season 2    "          "
                                |                          |
                                |                          |- Fear the Walking Dead-|
                                |                          |                                        |-Season 1    "          "
                                |                          |                                        |-Season 2    "          "

Then when going to TV-Shows on the Kodi main menu, see the Parent folder 'Star Trek' & 'Walking Dead'. Selecting one of those shows the spin-off shows, select the spin-off, and see the seasons.

Is it possible to do? Thanks.


RE: [HOW TO] Library Node Examples - chromeboy - 2024-05-20

Hi,

trying to make a node with several movies universes, Like MCU, Godzilla, etc.
standard I have option movie set on (like it if the movie sets are shown in library view).
But when I go to a specific universe I would like to hav ethe movies show in the order I want them to be shown AND if more movies belong to a set it shouldn't be shown as a set.

When I use this:

<node type="filter">
    <label>Marvel</label>
    <content>movies</content>
    <rule field="filename" operator="contains">
        <value>MCU</value>
    </rule>
    <order direction="ascending">filename</order>
</node>

When I user this:

I get a list with the movies (no movie sets are shown, but it is sorted in alphabetal order and not sorted by filename, so I am losing my prefred order

<node type="filter">
    <label>Marvel</label>
    <content>movies</content>
    <rule field="filename" operator="contains">
        <value>MCU</value>
    </rule>
    <order direction="ascending">filename</order>
    <group>none</group>
</node>


Anyone suggestions how to get it working: movie sets shown in library view, but when using a node, I want the list sorted based on the prefix I use in the filenames: PREFIX000-filename.mkv.


RE: [HOW TO] Library Node Examples - Karellen - 2024-05-20

(2024-05-20, 21:55)chromeboy Wrote: trying to make a node with several movies universes, Like MCU, Godzilla, etc.
Probably a better option... https://kodi.wiki/view/HOW-TO:Movie_universe


RE: [HOW TO] Library Node Examples - Karellen - 2024-05-20

(2024-05-19, 16:33)Younguns2005 Wrote: Then when going to TV-Shows on the Kodi main menu, see the Parent folder 'Star Trek' & 'Walking Dead'. Selecting one of those shows the spin-off shows, select the spin-off, and see the seasons.
No, it is not possible to have nested tv shows within tv shows.

You would be better off creating a Smart playlists (wiki) for each of those and then adding them as sub-menus of TV Shows using Custom home items (wiki)


RE: [HOW TO] Library Node Examples - chromeboy - 2024-05-20

Thanks for the super fast reply.

TRied it and it's working, but is it possible to put this behavour/the smart playlist in a node structure?

the smartplaylist code is:

xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name></name>
    <match>all</match>
    <rule field="filename" operator="contains">
        <value>MCU</value>
    </rule>
    <group>none</group>
    <order direction="ascending">file</order>
</smartplaylist>



RE: [HOW TO] Library Node Examples - Karellen - 2024-05-20

(2024-05-20, 22:13)chromeboy Wrote: but is it possible to put this behavour/the smart playlist in a node structure?
I've never tried, but I can't see why not.

I just tested this in my library and it works...
xml:
<?xml version='1.0' encoding='UTF-8'?>
<node order="1" type="filter">
<label>Marvel Cinematic Universe</label>
<content>movies</content>
<match>all</match>
<rule field="filename" operator="startswith">
<value>MCU</value>
</rule>
<order direction="ascending">file</order>
</node>
Note, I used "startswith" instead of "contains"


RE: [HOW TO] Library Node Examples - chromeboy - 2024-05-21

Hi,

thanks for the example. I tried it..., but also with your code I get moviesets (e.g. Captain America).

I also tried to use the smart playlist as part of the node, but also in that case: movie sets are shown. Although when using just the smartlist I don't get the moviesets and the movies are shown in preferred order.

So node is defined as (movies like Captain America are shown as sets):

<node type="filter">
    <label>List</label>
    <content>movies</content>
    <rule field="playlist" operator="is">
        <value>MCU Universe</value>
    </rule>
</node>

Smartlist defined as (if I just use the smartlist directly everything is show the way I want is):

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name></name>
    <match>all</match>
    <rule field="filename" operator="contains">
        <value>MCU</value>
    </rule>
    <group>none</group>
    <order direction="ascending">file</order>
</smartplaylist>

(Probably an open door, but, if you test this, please be sure that the have movies that will be combined as moviesets in the library).