Included are two scripts that will allow you to have playback of music on start up- get them here
I've included two scripts made by guyane[at]ifrance.com (RandomPlay1.py) & C. Newman (RandomPlay2.py) respectively

Both scripts will do the job- guyane[at]ifrance.com's script will launch a random playlist with no indication at start up, while C. Newman's will start with a dialog box telling you which playlist has been loaded

For this to work you have to create one or more playlists first (both will select a playlist at random on start up and shuffle the playlist before playing)

To create a playlist- go to my music- select a track and hit "y" on the gamepad or "0" on the remote (assuming you have not changed the keymap.xml). If you hit "y"/"0" over a folder or bookmark it will will add all valid music files in that bookmark/folder and all subdirectories to the playlist. Then save the playlist by accessing playlist view by hitting either black button on the gamepad or the "title" button the remote. Save the file (this will be saved to Q:\albums\playlists by default- where Q: is the XBMC "home" folder) using the onscreen keyboard to name the playlist.

Make sure that you have all the Python library installed for this to work. If you don't have it get it here: Unrar the and copy the scripts and python folders to the XBMC "home drive".

If you want to use the script that starts without any dialog screens you don't need to edit anything just copy autoexec.py and RandomPlay1.py to the scripts folder. if you want dialog, open the autoexec.py and rename RandomPlay1.py to Randomplay2.py (in notepad), and copy the edited autoexec.py and RandomPlay2.py to the scripts folder.

Changes I've made to the scripts:

RandomPlay1.py
Changed playlist path from E:\\Apps\\XBMC\\Albums\\playlists\\ to Q:\\albums\\playlists

RanddomPlay2.py
Changed playlist path from C:\\playlists\\ to Q:\\albums\\playlists added shuffle (xbmc.PlayList(0).shuffle() - remove if you don't want playlist to be shuffled- similalrly remove pls.shuffle() from RandomPlay1.py if you do not want to shuffle the playlist in RandomPlay1)

None of this is my own work and i'd like to thank guyane[at]ifrance.com & C. Newman for creating these scripts


Back to Frontpage

Hosted by www.Geocities.ws

1