2011-02-08, 01:00
the original code opens the file and reads through it line by line and determines which lines are rules and then parses out the playlist filenames.
the version I sent Jason uses minidom to read through the xml document which is the format the playlists are stored in. It's more efficient and allows for theoretically unlimited number of playlists since it iterates through each playlist node in the xml.
I also am able to get any other node in the playlist xml, e.g. order, limit, etc. Jason's initial version automatically randomized the mixed playlist which would prevent a user like @steppedup from having the control of the order different shows played in. My updated version reads in the <order> value in the mixed playlist and will randomize if the mixed playlist's order is set to random.
I hope I am not stepping on Jason's toes. I am very excited about the possibilities of this script.
the version I sent Jason uses minidom to read through the xml document which is the format the playlists are stored in. It's more efficient and allows for theoretically unlimited number of playlists since it iterates through each playlist node in the xml.
I also am able to get any other node in the playlist xml, e.g. order, limit, etc. Jason's initial version automatically randomized the mixed playlist which would prevent a user like @steppedup from having the control of the order different shows played in. My updated version reads in the <order> value in the mixed playlist and will randomize if the mixed playlist's order is set to random.
I hope I am not stepping on Jason's toes. I am very excited about the possibilities of this script.