I'm trying to set up two home menu Movies buttons that work just like the current Movies button, but each shows a different subset of movies. One button called "My Movies", one button called "Your Movies".
I have two video movie sources added to the library as movies - \Videos\My Movies\... and \Videos\Your Movies\.
On Windows 7 64 bit, Using a Frodo RC3 build from Jan 3, 2013. Transparency skin.
I copied C:\Program Files (x86)\XBMC\system\library contents to D:\Users\<me>\AppData\Roaming\XBMC\userdata\library
I created userdata\library\video\movies\mymovies.xml to look as follows:
I modified skin.transparency\720p\Includes_Home.xml - replacing
ActivateWindow(Videos,movietitles,return)
with
ActivateWindow(Videos,library://video/movies/mymovies.xml,return)
I then created userdata\library\video\movies\yourmovies.xml basically the same way, changing the rule to include only movies with "Your Movies" in the path.
I added an ActivateWindow call to those movies on another home button - ActivateWindow(Videos,library://video/movies/yourmovies.xml,return)
So far - everything works. I have one button on the home screen that, when I click on it, it only shows me a list of the movies in the \Videos\My Movies\ directory, and another button on the home screen that, when I click on it, it only shows me a list of movies in the \Videos\Your Movies directory.
So ... Great - thank you for the cool feature you added to allow this.
Now for the problem. I want to have the submenus of those buttons also be restricted to only the movies in the corresponding directory.
Each of the two home menu buttons ("My Movies", and "Your Movies") have submenus for Library, Genres, Years, Actors, Directors, Studios, and Recently Added.
I would like to set up the button for "My Movies->Genres" to only show me genres associated with the movies under \Videos\My Movies, and if I pick a genre, it will only show me movies of that genre that exist under \Videos\My Movies. Similar for "My Movies\Recently Added", and same functions for the submenus under "Your Movies".
I can not figure out how to create a Genre node that filters results to a specific path. It looks to me that it is not going to be possible, but can anyone who has worked on this code think of a way to do it?
If that is possible, will "Recently Added" also work?
Thanks again for all of this great stuff.
I have two video movie sources added to the library as movies - \Videos\My Movies\... and \Videos\Your Movies\.
On Windows 7 64 bit, Using a Frodo RC3 build from Jan 3, 2013. Transparency skin.
I copied C:\Program Files (x86)\XBMC\system\library contents to D:\Users\<me>\AppData\Roaming\XBMC\userdata\library
I created userdata\library\video\movies\mymovies.xml to look as follows:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="11" type="filter">
<label>My Movies</label>
<icon>DefaultMovieTitle.png</icon>
<content>movies</content>
<match>all</match>
<rule field="path" operator="contains">
<value>My Movies</value>
</rule>
<order direction="ascending">sorttitle</order>
</node>
I modified skin.transparency\720p\Includes_Home.xml - replacing
ActivateWindow(Videos,movietitles,return)
with
ActivateWindow(Videos,library://video/movies/mymovies.xml,return)
I then created userdata\library\video\movies\yourmovies.xml basically the same way, changing the rule to include only movies with "Your Movies" in the path.
I added an ActivateWindow call to those movies on another home button - ActivateWindow(Videos,library://video/movies/yourmovies.xml,return)
So far - everything works. I have one button on the home screen that, when I click on it, it only shows me a list of the movies in the \Videos\My Movies\ directory, and another button on the home screen that, when I click on it, it only shows me a list of movies in the \Videos\Your Movies directory.
So ... Great - thank you for the cool feature you added to allow this.
Now for the problem. I want to have the submenus of those buttons also be restricted to only the movies in the corresponding directory.
Each of the two home menu buttons ("My Movies", and "Your Movies") have submenus for Library, Genres, Years, Actors, Directors, Studios, and Recently Added.
I would like to set up the button for "My Movies->Genres" to only show me genres associated with the movies under \Videos\My Movies, and if I pick a genre, it will only show me movies of that genre that exist under \Videos\My Movies. Similar for "My Movies\Recently Added", and same functions for the submenus under "Your Movies".
I can not figure out how to create a Genre node that filters results to a specific path. It looks to me that it is not going to be possible, but can anyone who has worked on this code think of a way to do it?
If that is possible, will "Recently Added" also work?
Thanks again for all of this great stuff.