2017-10-25, 14:45
I need to filter by external source, my movies placed in different HDD. Is there a way to make it by Library node? Thanx
$ cat video/movies/kids.xml
<?xml version='1.0' encoding='UTF-8'?>
<node order="2" type="filter">
<label>Kids</label>
<icon>DefaultMovieTitle.png</icon>
<content>movies</content>
<order direction="ascending">sorttitle</order>
<rule field="tag" operator="contains">
<value>Children</value>
</rule>
</node>
(2017-10-29, 16:26)docwra Wrote:(2017-10-25, 14:45)Zani Wrote: I need to filter by external source, my movies placed in different HDD. Is there a way to make it by Library node? Thanx
Use a PATH filer. Just type the drive letter as the path rule and it should work pretty well.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="1" type="filter">
<label>External Drive Movies</label>
<content>movies</content>
<match>all</match>
<icon>disk.png</icon>
<rule field="path" operator="contains"><value>S:</value></rule>
</node>
(2017-10-30, 16:32)docwra Wrote: There is actually an example in the 1st post of this thread
Code:<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="1" type="filter">
<label>External Drive Movies</label>
<content>movies</content>
<match>all</match>
<icon>disk.png</icon>
<rule field="path" operator="contains"><value>S:</value></rule>
</node>
For example: This would only show movies from a drive called S:.
<?xml version='1.0' encoding='UTF-8'?>
<node order="1" type="filter">
<label>Global Underground</label>
<content>albums</content>
<rule field="album" operator="contains">
<value>Global Underground</value>
</rule>
<order direction="ascending">album</order>
<icon>L:\Kodi\Icons\GU.png</icon>
</node>