2013-05-06, 03:55
Hi Mike, just a quick question, is this the correct way to call your script?
(vpl1.path is the path to the first video playlist)
It's supposed to call a widget that shows Movies with rating > 6
And the script runs when one of the left menu is on focus..
If the number of movie is one everytime the script runs, then the limit is 1 correct?
I set the parameters like this :
I can't get it to work though..
This is the complete thread..
http://forum.xbmc.org/showthread.php?tid...pid1413793
PHP Code:
<onload condition="System.HasAddon(script.randomandlastitems) + !IsEmpty(skin.string(vpl1.path))">RunScript(script.randomandlastitems,limit=1,method=Random,playlist=special://masterprofile/playlists/video/Recommended_Barat.xsp,menu=Menu51)</onload>
(vpl1.path is the path to the first video playlist)
It's supposed to call a widget that shows Movies with rating > 6
And the script runs when one of the left menu is on focus..
If the number of movie is one everytime the script runs, then the limit is 1 correct?
I set the parameters like this :
PHP Code:
<include name="rec_contentvpl1">
<control type="panel" id="510"><!--- Playlist de Video 1 Recommended -->
<include condition="SubString(skin.string(menu),vertical)">panel_video_v</include>
<include condition="SubString(skin.string(menu),horizontal)">panel_video_h</include>
<visible>Container(9000).HasFocus(31)</visible>
<include>panel_videolayout</include>
<content>
<item>
<label>$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Title)]</label>
<label2>$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Tagline)]</label2>
<icon>$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Art(poster))]</icon>
<property name="Fanart">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Art(fanart))]</property>
<property name="Genre">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Genre)]</property>
<property name="Runtime">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Runtime)]</property>
<property name="Rating">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Rating)]</property>
<property name="Plot">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Plot)]</property>
<property name="Year">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Year)]</property>
<property name="Mpaa">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.MPAA)]</property>
<onclick>Skin.SetString(custom_play,$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Play)])</onclick>
<onclick>Skin.SetString(custom_trailer,$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Trailer)])</onclick>
<onclick condition="!IsEmpty(Window(0).Property(PlaylistLastMovieMenu51.1.Trailer))">ActivateWindow(623)</onclick>
<onclick condition="IsEmpty(Window(0).Property(PlaylistLastMovieMenu51.1.Trailer))">$INFO[Window(0).Property(PlaylistLastMovieMenu51.1.Play)]</onclick>
<visible>!IsEmpty(Window(0).Property(PlaylistLastMovieMenu51.1.Title))</visible>
</item>
</content>
</control>
</include>
I can't get it to work though..
This is the complete thread..
http://forum.xbmc.org/showthread.php?tid...pid1413793