2012-03-07, 18:17
No, if you are a skinner, you can add this script to your skin.
Maybe you should rename your xsp file to : ImdbTop250.xsp
If you display your playlist in XBMC, you have a movie ?
When you run the script in home.xml or include.xml (look how other skinners call it) :
XBMC.RunScript(script.randomandlastitems,limit=1,type=Movie,method=Last,playlist=special://masterprofile/playlists/ImdbTop250.xsp,menu=1)
You should have windows properties :
PlaylistLastMovie1.Count
PlaylistLastMovie1.Unwatched
PlaylistLastMovie1.Watched
PlaylistLastMovie1.1.Rating
PlaylistLastMovie1.LastMovie1.Plot
PlaylistLastMovie1.LastMovie1.RunningTime
PlaylistLastMovie1.LastMovie1.Path
PlaylistLastMovie1.LastMovie1.Rootpath
PlaylistLastMovie1.LastMovie1.Fanart
PlaylistLastMovie1.LastMovie1.Thumb
PlaylistLastMovie1.LastMovie1.Title
PlaylistLastMovie1.LastMovie1.Year
PlaylistLastMovie1.LastMovie1.Trailer
Has explained in first message of this thread :
http://forum.xbmc.org/showthread.php?tid=122448
Maybe you should rename your xsp file to : ImdbTop250.xsp
If you display your playlist in XBMC, you have a movie ?
When you run the script in home.xml or include.xml (look how other skinners call it) :
XBMC.RunScript(script.randomandlastitems,limit=1,type=Movie,method=Last,playlist=special://masterprofile/playlists/ImdbTop250.xsp,menu=1)
You should have windows properties :
PlaylistLastMovie1.Count
PlaylistLastMovie1.Unwatched
PlaylistLastMovie1.Watched
PlaylistLastMovie1.1.Rating
PlaylistLastMovie1.LastMovie1.Plot
PlaylistLastMovie1.LastMovie1.RunningTime
PlaylistLastMovie1.LastMovie1.Path
PlaylistLastMovie1.LastMovie1.Rootpath
PlaylistLastMovie1.LastMovie1.Fanart
PlaylistLastMovie1.LastMovie1.Thumb
PlaylistLastMovie1.LastMovie1.Title
PlaylistLastMovie1.LastMovie1.Year
PlaylistLastMovie1.LastMovie1.Trailer
Has explained in first message of this thread :
http://forum.xbmc.org/showthread.php?tid=122448