•   
  • 1
  • 8
  • 9
  • 10
  • 11
  • 12(current)
[HOW TO] Library Node Examples
(2019-07-12, 22:18)Finchy Wrote: Sorry, another question from me please.....!

Is it possible for me to restrict the movies that are shown under the main Movie node to those from 2000 onwards? When I try to add a rule to the main Movie node to limit to movies greater than 1999 only it still displays all of them. Is that because the main Movie and Music nodes are locked? Would I just have to create a new Parent node with movies and that rule and use that instead, and disable the main one from the home screen?

Yes you can do this.

I always work directly with the xml files, so for what you want you would edit the titles.xml file in the movies folder to be

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="30" type="filter">
<label>10024</label>
<content>movies</content>
<icon>DefaultMovieTitle.png</icon>
<match>all</match>
<rule field="year" operator="greaterthan"><value>1999</value></rule>
<order direction="ascending">sorttitle</order>
</node>

As described on wiki page Video_nodes (wiki) I copied the xml files over to my userdata folder and edited the titles.xml there.

Image
Reply
(2019-07-16, 10:03)MB1968 Wrote:
(2019-07-12, 22:18)Finchy Wrote: Sorry, another question from me please.....!

Is it possible for me to restrict the movies that are shown under the main Movie node to those from 2000 onwards? When I try to add a rule to the main Movie node to limit to movies greater than 1999 only it still displays all of them. Is that because the main Movie and Music nodes are locked? Would I just have to create a new Parent node with movies and that rule and use that instead, and disable the main one from the home screen?
I'm curious in this too.

I am assuming you still want to do what you described at 2867042 (post)

If so here's an example for the edited titles.xml for your case

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="30" type="filter">
<label>10024</label>
<content>movies</content>
<icon>DefaultMovieTitle.png</icon>
<match>all</match>
<rule field="genre" operator="doesnotcontain"><value>Documentary</value></rule>
<order direction="ascending">sorttitle</order>
</node>
Reply
(2019-07-16, 15:46)jjd-uk Wrote:
(2019-07-16, 10:03)MB1968 Wrote:
(2019-07-12, 22:18)Finchy Wrote: Sorry, another question from me please.....!

Is it possible for me to restrict the movies that are shown under the main Movie node to those from 2000 onwards? When I try to add a rule to the main Movie node to limit to movies greater than 1999 only it still displays all of them. Is that because the main Movie and Music nodes are locked? Would I just have to create a new Parent node with movies and that rule and use that instead, and disable the main one from the home screen?
I'm curious in this too. 

I am assuming you still want to do what you described at 2867042 (post)

If so here's an example for the edited titles.xml for your case

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="30" type="filter">
<label>10024</label>
<content>movies</content>
<icon>DefaultMovieTitle.png</icon>
<match>all</match>
<rule field="genre" operator="doesnotcontain"><value>Documentary</value></rule>
<order direction="ascending">sorttitle</order>
</node>
 
Thanks for your help. I know how to create rules to apply the filters. But the rules are being ignored for the movie library/default movies node. I tested your titles.xml file. Same problem. However, when I create a new parent node "My Movies" the rules and filters work as they should. What could be the reason that the rules are ignored for the default movies node? Does it depent on the skin?
It seems a common issue. Please read the first message: https://www.youtube.com/watch?v=HQ-ajNMy6pY
Reply
That example was for the default Movies node which is what the titles.xml is, so you must be doing something wrong because I can change to rules for the included titles.xml and the new rules get applied to the nodes.

Could you post the contents of each folder under the Library folder?
Reply
Ah hold on I think penny has dropped, you mean access the Movies section direct from the Home screen button and not by going the Videos -> Movies -> Titles path, in which that will be dependent on the path the skin uses for that button.
Reply
Ok just checked with Estuary and Movies button is mapped to the Titles node via ActivateWindow(Videos,videodb://movies/titles/,return) however it gives the unfiltered list, whereas if you go Videos -> Movies -> Titles you get the correctly filtered list. I would guess that's a bug as both should return the exact same listing no matter the path you take to get there, so it should be reported by someone to Github issues (follow Bug Tracker link at top of forum).
Reply
(2019-07-16, 17:26)jjd-uk Wrote: Ah hold on I think penny has dropped, you mean access the Movies section direct from the Home screen button and not by going the Videos -> Movies -> Titles path, in which that will be dependent on the path the skin uses for that button.
Yes, direct acces from the home screen button. I'm using the Aeon mQ7 skin. The rule does not work for the default Movies button on the homescreen.

When I replace the Movies menu on the home screen by selecting:
Replace Menu
Videonode
Movies
Titles, than the rule works.

But in this scenario the movie library status on the home screen is missing (total movies/unwatched) and my box set movies are not grouped.
Reply
the list is coming from the database ActivateWindow(Videos,videodb://movies/,return) and dose not link to titles.xml
@MB1968
But in this scenario the movie library status on the home screen is missing (total movies/unwatched) and my box set movies are not grouped.
you would need to make a new movies node 

<?xml version='1.0' encoding='UTF-8'?>
<node order="30" type="filter">
    <label>10024</label>
    <icon>DefaultMovieTitle.png</icon>
    <content>movies</content>
    <order direction="ascending">sorttitle</order>
    <rule field="path" operator="doesnotcontain">
        <value>E:\Movies\</value>
    </rule>
</node>
to remove a folder path
<rule field="path" operator="doesnotcontain">
        <value>E:\FOLDER\</value>
    </rule>
Reply
(2019-07-17, 02:06)the_other_guy Wrote: the list is coming from the database ActivateWindow(Videos,videodb://movies/,return) and dose not link to titles.xml
@MB1968
But in this scenario the movie library status on the home screen is missing (total movies/unwatched) and my box set movies are not grouped.
you would need to make a new movies node 

<?xml version='1.0' encoding='UTF-8'?>
<node order="30" type="filter">
    <label>10024</label>
    <icon>DefaultMovieTitle.png</icon>
    <content>movies</content>
    <order direction="ascending">sorttitle</order>
    <rule field="path" operator="doesnotcontain">
        <value>E:\Movies\</value>
    </rule>
</node>
to remove a folder path
<rule field="path" operator="doesnotcontain">
        <value>E:\FOLDER\</value>
    </rule>
Thanks.
Reply
(2019-07-16, 15:38)jjd-uk Wrote:
(2019-07-12, 22:18)Finchy Wrote: Sorry, another question from me please.....!

Is it possible for me to restrict the movies that are shown under the main Movie node to those from 2000 onwards? When I try to add a rule to the main Movie node to limit to movies greater than 1999 only it still displays all of them. Is that because the main Movie and Music nodes are locked? Would I just have to create a new Parent node with movies and that rule and use that instead, and disable the main one from the home screen?

Yes you can do this.

I always work directly with the xml files, so for what you want you would edit the titles.xml file in the movies folder to be

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="30" type="filter">
<label>10024</label>
<content>movies</content>
<icon>DefaultMovieTitle.png</icon>
<match>all</match>
<rule field="year" operator="greaterthan"><value>1999</value></rule>
<order direction="ascending">sorttitle</order>
</node>

As described on wiki page Video_nodes (wiki) I copied the xml files over to my userdata folder and edited the titles.xml there.

Image 

Just coming back on this; do I just need to change the title.xml files in each node folder and all the other xml files will relate to those? Or do I need to change all the other xml files in there so they also include the same (ie only the filtered files are included for genres, years, sets, etc in that node?)

Thanks
Reply
  •   
  • 1
  • 8
  • 9
  • 10
  • 11
  • 12(current)
 
Thread Rating:
  • 5 Vote(s) - 3.8 Average



Logout Mark Read Team Forum Stats Members Help
[HOW TO] Library Node Examples3.85