Last Added in Custom Menu
#1
Hi, I have added two custom menus to my confluence home screen called FILMS and 3D (with differents submenus) and I have disabled Movies and TvShows default Video buttons.

But now I would like to have the same RECENTLY ADDED feature in my custom buttons, so when I move to FILMS it will show the Recently Added films (As the default MOVIES button do) and the same with 3D. How can I do it? I have seen the IncludesHomeRecentlyAdded.xml file but I don't know how to copy this feature to my custom menu buttons.

Thanks a lot!
Reply
#2
You need a script for recently added in smartplaylists:
See here:
http://forum.xbmc.org/showthread.php?tid=122448

And you might chech my github commits to see how to implement this into confluence...
Here:

https://github.com/mad-max/skin.moddedco...6dabc7180f

and here:

https://github.com/mad-max/skin.moddedco...0348cd7b9f
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#3
Thanks. That seems to be what I need. I have tried to install it and I have no problems with the first recent list for one custom menu. But I don't know how to continue with the rest custom menus. ¿Where I should call the script again to search in a diferent playlist? Now I have recent list windows in every custom menu (added for each one in 720p/IncludesHomeRecentlyAdded.xml) but all of them show the same recent list because the call to the script is the same for all (at the top of 720p/Home.xml). How to call the script differently from each custom menu to display a different recent list in each one?

Thanks again and congratulations for the script.
Reply
#4
Just see the onload command in Home.xml...
You'll find it in the first commit...
You need to have one command there for each playlist...
So you need to change the playlist itself and you need to increment the menu1 every call of the script...
Next thing is to adopt the items in recentlyadded to have the according menu number...

Sent from my HTC
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#5
All right, I see. I thought that the script for each different custom menu was loaded separated in time and in place.

thanks again!
Reply
#6
I'm now having problems just with the recent Tv Shows because it appears empty. The other playlists (all movie) works well. This is the code I'm using:

Home.xml
Code:
<defaultcontrol always="true">9000</defaultcontrol>
    <onload condition="Window.Previous(startup)+Skin.HasSetting(customstartupfocus)">Control.Move(9000,$INFO[Skin.String(CustomFocusOffset)])</onload>
    <onload condition="Skin.HasSetting(watchlist)">RunScript(script.watchlist,movies=true&amp;episodes=true&amp;albums=true&amp;limit=10)</onload>
    <onload>XBMC.RunScript(script.randomandlastitems,type=Movie,limit=10,method=Last,playlist=special://profile/playlists/video/PELICULAS.xsp,menu=Menu1)</onload>
    <onload>XBMC.RunScript(script.randomandlastitems,type=Episode,limit=10,method=Last,menu=Menu2)</onload>
    <onload>XBMC.RunScript(script.randomandlastitems,type=Movie,limit=10,method=Last,playlist=special://profile/playlists/video/3D.xsp,menu=Menu3)</onload>
    <controls>

IncludesHomeRecentlyAdded.xml
Code:
            <!-- RECENT SERIES-->    
            <control type="group">
                <posx>740</posx>
                <posy>30</posy>
                <visible>Library.HasContent(TVShows)</visible>
                <visible>Container(9000).Hasfocus(13)</visible>
                <include>VisibleFadeEffect</include>
                <control type="label">
                    <description>Title label</description>
                    <posx>0</posx>
                    <posy>220</posy>
                    <height>20</height>
                    <width>540</width>
                    <label>40032</label>
                    <align>center</align>
                    <aligny>center</aligny>
                    <font>font12_title</font>
                    <textcolor>white</textcolor>
                    <shadowcolor>black</shadowcolor>
                    <animation effect="fade" start="100" end="0" time="300" condition="Control.HasFocus(8001)">Conditional</animation>
                </control>
                <control type="list" id="8000">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>900</width>
                    <height>220</height>
                    <onleft>SetFocus(8001,3)</onleft>
                    <onright>SetFocus(8001,3)</onright>
                    <onup>20</onup>
                    <ondown>600</ondown>
                    <viewtype label="535">list</viewtype>
                    <pagecontrol>-</pagecontrol>
                    <scrolltime>200</scrolltime>
                    <orientation>Horizontal</orientation>
                    <itemlayout height="220" width="180">
                        <control type="image">
                            <description>background</description>
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>180</width>
                            <height>220</height>
                            <texture border="15">RecentAddedBack.png</texture>
                        </control>
                        <control type="image">
                            <posx>10</posx>
                            <posy>10</posy>
                            <width>160</width>
                            <height>170</height>
                            <texture background="true">$INFO[ListItem.Icon]</texture>
                            <bordertexture border="5">button-nofocus.png</bordertexture>
                            <bordersize>5</bordersize>
                        </control>
                        <control type="label">
                            <posx>90</posx>
                            <posy>185</posy>
                            <width>150</width>
                            <height>20</height>
                            <font>font12</font>
                            <textcolor>white</textcolor>
                            <shadowcolor>black</shadowcolor>
                            <selectedcolor>selected</selectedcolor>
                            <align>center</align>
                            <aligny>center</aligny>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout height="220" width="180">
                        <control type="image">
                            <description>background</description>
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>180</width>
                            <height>220</height>
                            <texture border="15">RecentAddedBack.png</texture>
                        </control>
                        <control type="image">
                            <posx>10</posx>
                            <posy>10</posy>
                            <width>160</width>
                            <height>170</height>
                            <texture background="true">$INFO[ListItem.Icon]</texture>
                            <bordertexture border="5">folder-focus.png</bordertexture>
                            <bordersize>5</bordersize>
                            <visible>Control.HasFocus(8000)</visible>
                        </control>
                        <control type="image">
                            <posx>10</posx>
                            <posy>10</posy>
                            <width>160</width>
                            <height>170</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <bordertexture border="5">button-nofocus.png</bordertexture>
                            <bordersize>5</bordersize>
                            <visible>!Control.HasFocus(8000)</visible>
                        </control>
                        <control type="label">
                            <posx>90</posx>
                            <posy>185</posy>
                            <width>150</width>
                            <height>20</height>
                            <font>font12</font>
                            <textcolor>white</textcolor>
                            <shadowcolor>black</shadowcolor>
                            <selectedcolor>selected</selectedcolor>
                            <align>center</align>
                            <aligny>center</aligny>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id="1">
                            <label>$INFO[Window.Property(PlaylistLastMovieMenu2.1.Title)]</label>
                            <label2></label2>
                            <onclick>PlayMedia($INFO[Window.Property(PlaylistLastMovieMenu2.1.Path)])</onclick>
                            <icon>$INFO[Window.Property(PlaylistLastMovieMenu2.1.Thumb)]</icon>
                            <thumb>-</thumb>
                        </item>
                        <item id="2">
                            <label>$INFO[Window.Property(PlaylistLastMovieMenu2.2.Title)]</label>
                            <label2></label2>
                            <onclick>PlayMedia($INFO[Window.Property(PlaylistLastMovieMenu2.2.Path)])</onclick>
                            <icon>$INFO[Window.Property(PlaylistLastMovieMenu2.2.Thumb)]</icon>
                            <thumb>-</thumb>
                        </item>
                        <item id="3">
                            <label>$INFO[Window.Property(PlaylistLastMovieMenu2.3.Title)]</label>
                            <label2></label2>
                            <onclick>PlayMedia($INFO[Window.Property(PlaylistLastMovieMenu2.3.Path)])</onclick>
                            <icon>$INFO[Window.Property(PlaylistLastMovieMenu2.3.Thumb)]</icon>
                            <thumb>-</thumb>
                        </item>
                    </content>
                </control>
            </control>
            <!-- RECENT SERIES-->

I guess it's because I need to change PlaylistLastMovieMenu with something like PlaylistEpisodeMenu but I don't know it exactly and I don't see it in your examples.
Reply
#7
Anyway, I don't know why I want a new recent TV list because I can use the default, with the default menu. So don't worry, I'm going to use the default one.
Reply

Logout Mark Read Team Forum Stats Members Help
Last Added in Custom Menu0