Kodi Community Forum
Add new movie sub-menu - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
+---- Thread: Add new movie sub-menu (/showthread.php?tid=162455)



Add new movie sub-menu - jonask - 2013-04-14

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


RE: Add new movie sub-menu - Mudislander - 2013-04-15

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.


RE: Add new movie sub-menu - jonask - 2013-04-19

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


RE: Add new movie sub-menu - kaffekask - 2013-04-19

Special: http://wiki.xbmc.org/?title=Special_protocol


RE: Add new movie sub-menu - Bochelair - 2013-07-12

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.


RE: Add new movie sub-menu - jmh2002 - 2013-07-29

Or just use Confluence Customizable Mod which has this feature already built in? Smile

http://forum.xbmc.org/showthread.php?tid=160184