Add new movie sub-menu
#1
Hi

Is there a way to create a new movie sub-menu that leads direct to all my unwatched movies?

Image

What I want is normal movie view with the misc option “Hide watched” set to true.

I’m stock here:

In IncludesHomeMenuItems.xml I added a new control (is that the correct way to do it?):

<control type="button" id="90162000">
<include>ButtonHomeSubCommonValues</include>
<label>Unwatched</label>
<onclick>ActivateWindow(Videos,RecentlyAddedMovies,return)</onclick>
</control>

So:
a)
What must I write instead off?
<onclick>ActivateWindow(Videos,RecentlyAddedMovies,return)</onclick>
b)
To get that to work I had to give the button a new id (added a couple off zeros), else the arrows on the keyboard didn’t work– what would be a more “proper” id?

Cheers
/Jonz
Reply
#2
A/ You'll need to do some research on "Nodes" and use

Code:
<onclick>ActivateWindow(Videos,library://video/your_new_node.xml/,return)</onclick>

or use playlists.

B/ Sequential numbers work nicely - where you looked run from 90161 to 90168 . The next group start at 90171. So you have room for at least 2 new id numbers.
Noli illegitimi carborundum


Reply
#3
Thanx

Made a movie playlist where ”Play count is 0”.

<onclick>ActivateWindow(Video,special://profile/playlists/video/Unwatched.xsp,return)</onclick>

Took some time, couldn’t find any good documentation - guess I have looked in the wrong places.
So the solution is based on examples I found in forum / trial and error - it works I just don’t know how it works (the parameter “special” no clue – but it did the trick Wink.

Cheers
/j
Reply
#4
Special: http://wiki.xbmc.org/?title=Special_protocol
Reply
#5
Hey Jonz,

Sorry for the late reply but this is the way.

first you have to create a smart playlist.
By going to videos.
Playlists.
Create new smart playlist.
then choose type movies
Name you smart playlist not seen movies (we'll need this name later)
rule contains path (choose your path to your movie directory)
add new rule
Play count is 0
Playlist Options Item must match all of the rules.
Click ok.
Now you'll see your smart playlist is added.
rightclick your playlist and select add to favorites.

now

In the directory addons\skin.confluence\720p\IncludesHomeMenuItems.xml
search for the following code
Code:
<control type="button" id="90167">
    <include>ButtonHomeSubCommonValues</include>
    <label>344</label>
    <onclick>ActivateWindow(Videos,MovieActors,return)</onclick>
</control>-->

replace that code with:

Code:
<control type="button" id="90167">
    <include>ButtonHomeSubCommonValues</include>
    <label>344</label>
    <onclick>ActivateWindow(Videos,MovieActors,return)</onclick>
</control>-->
<control type="button" id="90168">
    <include>ButtonHomeSubCommonValues</include>
    <label>16101</label><!--this number stands for not seen-->
    <onclick><favourite name="not seen movies">ActivateWindow(10025,&quot;special://profile/playlists/video/not seen movies.xsp&quot;)</onclick>
</control>

save the document and restart your xbmc.
Done!

Greets Bochelair.
Reply
#6
Or just use Confluence Customizable Mod which has this feature already built in? Smile

http://forum.xbmc.org/showthread.php?tid=160184
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)
For YouTube questions see the official thread here.
Reply

Logout Mark Read Team Forum Stats Members Help
Add new movie sub-menu0