2012-03-07, 17:32
Sorry a noob question
I want the script to get one movie from the IMDB Top 250.xsp but have no idea how to code it but below is what I have so far!
I think I put the "XBMC.RunScript(script.randomandlastitems,limit=1,method=Last,playlist=special://masterprofile/playlists/IMDB Top 250.xsp,menu=1)" in the wrong place! but no clue were to put it.
I want the script to get one movie from the IMDB Top 250.xsp but have no idea how to code it but below is what I have so far!
I think I put the "XBMC.RunScript(script.randomandlastitems,limit=1,method=Last,playlist=special://masterprofile/playlists/IMDB Top 250.xsp,menu=1)" in the wrong place! but no clue were to put it.
PHP Code:
<!-- Featured -->
<control type="group">
<visible>Container(300).HasFocus(3)</visible>
<control type="list" id="370">
<include>IMDB Movie</include>
<content>
<item id="1">
<onload>XBMC.RunScript(script.randomandlastitems,limit=1,method=Last,playlist=special://masterprofile/playlists/IMDB Top 250.xsp,menu=1)</onload>
<thumb>$INFO[Window.Property(PlaylistRandomMovie1.1.Thumb)]</thumb>
<icon>$INFO[Window.Property(PlaylistRandomMovie1.1.Fanart)]</icon>
<onclick>$INFO[Window.Property(PlaylistRandomMovie1.1.Path),PlayMedia(,)]</onclick>
</item>
</content>
</control>
</control>
<!-- Featured (End) -->