Start playlist from memory card at startup
#1
ive created this script as ive got an xbox in my car and wanted to change what playlist my xbox would start playing without having to remove the xbox from the car all the time.
only really usefull if you've got 2 xbox's or an action replay or similar device.

1. ftp into your xbox while running xbmc
2. select a memory card drive (for example h/)
3. create a folder with a name 16 digits long so the ms dash doesnt delete it (i used xbmcm3ulists - note: folder will show in evox as 0face008/xbmcm3ulists/)
4. go into the folder you created and add a copy of any savemeta.xbx file (again to prevent the ms dash deleting the folder), also add a playlist (for example called solstice rise.m3u) which points to your files on the xbox, mine looked like this -
Quote:e:/mp3/whitmore-solstice rise/01-too long too late.mp3
e:/mp3/whitmore-solstice rise/02-sober days.mp3
e:/mp3/whitmore-solstice rise/03-promises.mp3
e:/mp3/whitmore-solstice rise/04-dim blue light.mp3
e:/mp3/whitmore-solstice rise/05-people say.mp3
e:/mp3/whitmore-solstice rise/06-side by side.mp3
e:/mp3/whitmore-solstice rise/07-bad intentions.mp3
e:/mp3/whitmore-solstice rise/08-skunk #1.mp3
e:/mp3/whitmore-solstice rise/09-fighting for today.mp3
e:/mp3/whitmore-solstice rise/10-october ends.mp3
e:/mp3/whitmore-solstice rise/11-friday im in love.mp3
e:/mp3/whitmore-solstice rise/12-the harsh realities of life.mp3
e:/mp3/whitmore-solstice rise/13-flicking the bean.mp3
e:/mp3/whitmore-solstice rise/14-change of world.mp3
e:/mp3/whitmore-solstice rise/15-holding out.mp3
e:/mp3/whitmore-solstice rise/16-ethics.mp3
then also add a script file (i called mine memcard.py) i added the directories for all the memory card mapped drives so that it will play no matter what slot it is plugged into
Quote:import xbmc

pls = xbmc.playlist(0)
temp="solstice rise.m3u"
pls.load("f:/xbmcm3ulists/" + temp)
pls.load("g:/xbmcm3ulists/" + temp)
pls.load("h:/xbmcm3ulists/" + temp)
pls.load("i:/xbmcm3ulists/" + temp)
pls.load("j:/xbmcm3ulists/" + temp)
pls.load("k:/xbmcm3ulists/" + temp)
pls.load("l:/xbmcm3ulists/" + temp)
pls.load("m:/xbmcm3ulists/" + temp)
pls.shuffle()
xbmc.player().play(pls)
5. finally add an autoexec.py script to your xbmc/scripts/ folder with the following text to call up the memcard.py script off the memory card
Quote:import xbmc

xbmc.executescript('f:\\xbmcm3ulists\\memcard.py')
xbmc.executescript('g:\\xbmcm3ulists\\memcard.py')
xbmc.executescript('h:\\xbmcm3ulists\\memcard.py')
xbmc.executescript('i:\\xbmcm3ulists\\memcard.py')
xbmc.executescript('j:\\xbmcm3ulists\\memcard.py')
xbmc.executescript('k:\\xbmcm3ulists\\memcard.py')
xbmc.executescript('l:\\xbmcm3ulists\\memcard.py')
xbmc.executescript('m:\\xbmcm3ulists\\memcard.py')
Reply
#2
Information 
congrats on your first script Wink
now i too want to play with the playlist object.
Reply

Logout Mark Read Team Forum Stats Members Help
Start playlist from memory card at startup0