XBMC Community Forum
Play Random Music at startup from directory - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+--- Thread: Play Random Music at startup from directory (/showthread.php?tid=121287)



Play Random Music at startup from directory - finalbeta - 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.

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=List_of_Built_In_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!