2012-01-28, 16:21
Hello,
I wanted to let XBMC play random music from a directory, and do a recursive random slideshow.
for the most part, this works when using the code below in autoexec.py.
However, I can not get the random to work for the music. I've tried several different variations on the code above. But nothing is really random.
I used this page as my guide: http://wiki.xbmc.org/index.php?title=Lis..._Functions
I could use some help on making the music part work as I expected. Really random, and if possible recursive.
Thanks in advance for any input!
I wanted to let XBMC play random music from a directory, and do a recursive random slideshow.
for the most part, this works when using the code below in autoexec.py.
Code:
import xbmc
xbmc.executebuiltin("PlayerControl(Random)")
xbmc.executebuiltin("PlayMedia(D:\\Music\\Tracks,isdir)")
xbmc.executebuiltin("Slideshow(D:\\Photos\\Personal,recursive, random)")
xbmc.executebuiltin("Notification(Started,XBMC started!,15000)")
However, I can not get the random to work for the music. I've tried several different variations on the code above. But nothing is really random.
I used this page as my guide: http://wiki.xbmc.org/index.php?title=Lis..._Functions
I could use some help on making the music part work as I expected. Really random, and if possible recursive.
Thanks in advance for any input!