2005-01-25, 19:44
thought this might be pretty easy for someone with alittle python skill.
was hoping someone could write a script that would look out on the albums\playlists directory and get a list of .m3u files then offer me the chance to pick which one i want to listen to. after its selected, the list would be shuffled and played. it would be super if a default playlist would automatically run in case a key was not pressed, say within 5 seconds.
i have gotten scripts to run for me when xbmc starts up using an autoexec.py file that looks like this:
import xbmc
xbmc.executescript('q:\\scripts\\autoplay.py')
then i have a autoplay.py that looks like this
file = 'q:\\albums\\playlists\\playlist.m3u'
pls = xbmc.playlist(0)
pls.load(file)
pls.shuffle()
xbmc.player().play(pls)
this is working perfectly on the 1-15-05 cvs build. i guess i am just trying to get alittle fancy now. the xbox that this will run on is in my car so making changes to my existing playlist is just alittle inconvient. if a window would pop up with my list of playlists and let me choose one if i wanted to or just play whichever one is highlighted if i dont make a selection it would be awesome.
was hoping someone could write a script that would look out on the albums\playlists directory and get a list of .m3u files then offer me the chance to pick which one i want to listen to. after its selected, the list would be shuffled and played. it would be super if a default playlist would automatically run in case a key was not pressed, say within 5 seconds.
i have gotten scripts to run for me when xbmc starts up using an autoexec.py file that looks like this:
import xbmc
xbmc.executescript('q:\\scripts\\autoplay.py')
then i have a autoplay.py that looks like this
file = 'q:\\albums\\playlists\\playlist.m3u'
pls = xbmc.playlist(0)
pls.load(file)
pls.shuffle()
xbmc.player().play(pls)
this is working perfectly on the 1-15-05 cvs build. i guess i am just trying to get alittle fancy now. the xbox that this will run on is in my car so making changes to my existing playlist is just alittle inconvient. if a window would pop up with my list of playlists and let me choose one if i wanted to or just play whichever one is highlighted if i dont make a selection it would be awesome.