Custom Video Nodes
#1
So I'm trying to set up a custom video node so I can keep my home movies separate from (regular) movies...

I followed the Video Nodes page.

I was able to create a new top level menu item and point it to the file:

LIBRARY://VIDEO/HOMEMOVIES.XML

xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="10" type="filter">
 <label>Home Movies</label>
 <content>movies</content>
 <match>all</match>
 <icon>DefaultCars.png</icon>
 <rule field="path" operator="doesnotcontain"><value>/movies/</value></rule>
</node>

which lives in /userdata/library/video

That works great and only my home movies show up.

Next I want to prevent the home movies from showing up with the movies. So I copied the movies folder structure as directed from /usr/share/kodi/system/library/video

I then edited /userdata/library/video/movies/titles.xml

xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="2" type="filter">
  <label>369</label>
  <icon>DefaultMovieTitle.png</icon>
  <content>movies</content>
  <order direction="ascending">sorttitle</order>
  <match>all</match>
    <rule field="path" operator="doesnotcontain"><value>/Home Movies/</value></rule>
</node>

At First I didn't see any changes but I noticed that the Action for the menu item is:

HTML:
ACTIVATEWINDOW(VIDEOS,MOVIETITLES,RETURN)

So I guess i need to explicitly point it to my modified file?

HTML:
ACTIVATEWINDOW(VIDEOS,LIBRARY://VIDEO/MOVIES/TITLES.XML,RETURN)

it work as expected when I did that... but that literally only applies to when I click the Movies menu and doesn't filter out any of the Categories and Widgets...

I tried to do something silimar with the "recentlyaddedmovies.xml" file:

xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="10" type="folder" visible="Library.HasContent(Movies)">
  <label>20386</label>
  <icon>DefaultRecentlyAddedMovies.png</icon>
  <path>videodb://recentlyaddedmovies/</path>
    <match>all</match>
    <rule field="path" operator="doesnotcontain"><value>/Home Movies/</value></rule>
</node>

but I guess this syntax isn't correct or something (type is "folder" here the other one has "filter")

Either way it sounds like I need to edit each XML file and then also edit each menu item? I assume there is an XML file for the menu somewhere so I can edit it directly?

Is this the right approach? Is there an easier way to pull this off?
Reply


Messages In This Thread
Custom Video Nodes - by khargy - 2020-05-16, 17:16
RE: Custom Video Nodes - by taylorn84 - 2021-03-29, 16:53
RE: Custom Video Nodes - by jojobro - 2021-05-24, 14:47
Logout Mark Read Team Forum Stats Members Help
Custom Video Nodes0