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 - chromeboy - 2024-05-21

Hi,

i think I solved the issue. When I use:
xml:
<node type="filter">
    <label>MCU</label>
    <content>movies</content>
    <rule field="filename" operator="contains">
        <value>MCU</value>
    </rule>
    <rule field="title" operator="contains">
        <value />
    </rule>
    <group>none</group>
    <order direction="ascending">file</order>
</node>
I get exactly what I want.

So what's different/ what changes did I made to Karellens code?

I added:
xml:
<group>none</group>

Also I noticed that - when using the Library Node Editor - that choosing "file" as sorting order generates:
xml:
<order direction="ascending">filename</order>

when you change it to (like what Karellen proposed in the example):
xml:
<order direction="ascending">file</order>
the issue is solved.
Note that is now says file instead of filename.

Now I am just wondering what to chose in the Library Node Editor to generate
xml:
<order direction="ascending">file</order>

instead of:
xml:
 <order direction="ascending">filename</order>

Or is it a Library Node Editor issue?


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

(2024-05-21, 08:37)chromeboy Wrote:     <group>none</group>
Nice fix. I'll give that a try.
The Movie Set grouping is global, so affects all displayed lists.

(2024-05-21, 08:37)chromeboy Wrote: Or is it a Library Node Editor issue?
It is possible. There have been any updates to the addon for over four years.
You don't really need it as you can just create your own xml node files. In fact, I struggle to use it as I find it a bit confusing.
Are you using Windows? The node files are in Userdata (wiki)/library/video/movies folder


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


Quote:The Movie Set grouping is global, so affects all displayed lists.
I know, took some effort to figure out how to bypass it for a specific node. Also strange that it works in a smart playlist, but when you use a smart playlist in the node, it seems that the global Movie Set grouping overrules...
Fortunately together with your info and suggestions I was able to figure it out!
Thank you so much!
Quote:It is possible. I don't think there have been any updates to the addon for a few versions.
You don't really need it as you can just create your own xml node files. In fact, I struggle to use it as I find it a bit confusing.
Are you using Windows? The node files are in Userdata (wiki)/library/video/movies folder
For now I just combine the Library Node Editor with manually adapting the XML files. Still trying to get familiar with the whole concept
It is just weird that there seems to be a difference in file and filename. Or maybe filename isn't working at all... 
Quote:Are you using Windows? The node files are in Userdata (wiki)/library/video/movies folder
Windows as well as Shield, but I found the location of the files. Just wondering is it also possible to change the genres in the movie library section? I know that you can changes categories bij adding or deleting the necessary XML files, but don't know if it is also possible for genre. Any ideas/suggestions?


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

(2024-05-21, 10:09)chromeboy Wrote: . Just wondering is it also possible to change the genres in the movie library section
Ask again in a new thread in OS Independent/Other sub forum, otherwise this node thread gets off track and difficult to search through.

When I get a chance, I'll test out the file/filename issue.

But glad you got the rest of it working. And thanks for figuring out that grouping workaround Smile


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

(2024-05-21, 10:58)Karellen Wrote: When I get a chance, I'll test out the file/filename issue.
Let me know what you're finding are.

Once again thank you so much for you patience and pointing me in the right direction. 
Smile


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

Hi,

is it possible to set the background upon selecting a specific node. Like what happens when you select a specific movie?
If so, how?
So if I slect MCU I get a predefined MCU background, which disappaears as soon as one deselects or selects something else,


RE: [HOW TO] Library Node Examples - PatK - 2024-06-21

In that respect Nodes needs a little more work, just like favourites. Using sets is the best way of handling the issue for now. Some 3rd party add-ons offer this capability. Add-on:Super Favourites (wiki) it looks like someone is keeping this alive as this messy infers.


RE: [HOW TO] Library Node Examples - DiMag - 2024-06-22

From my experience with path/startswith I can say that filename=MCU is almost certainly wrong. Filename necessarily includes some path of the path (be it filesystem path or library path), so that it almost certainly can never start with "MCU". What certainly starts with "MCU" is either the movie title or the movie sorttitle. That "file" --as you claim-- has the same filtering effect as "title"or "sorttitle" is a surprise to me.


RE: [HOW TO] Library Node Examples - DiMag - 2024-06-22

(Reply to https://forum.kodi.tv/showthread.php?tid=257378&pid=3198524#pid3198524)


Library Node - filter contents based on 2 paths - luneart - 2024-10-27

Hi, not an example a question.
I try to have a video node for my animes. For legacy reasons, I have 2 paths (an old drive, full, and a path on my main NAS).

I tried using library node editor to separate my animes. I created a parent node templated on TV shows, and added a rule on path ("starting with") to select one of my path, works well. However if add add a second rule for my second path, that new animes video node contains no title - quite logical as no title starts with both paths. So, how can set up an "OR" rule? Like starts with /path1 OR starts with /path2 ?


RE: [HOW TO] Library Node Examples - Karellen - 2024-10-27

(2024-10-27, 15:32)luneart Wrote: how can set up an "OR" rule?
Step 4- Items must match... https://kodi.wiki/view/Smart_playlists/GUI_Method