I can't replicate this, but I will see what I can do. Have you got ScrobblerDJ installed as well? Or are you using the built-in AutoDJ. If so, these don't play well together, you should switch off the others to use the AutoAlbumDJ.
So... I roughly understood your script and wilk try to find the problem. Can you just tell me, how to do some testing? I want to make a message box with an ok button and perhaps some text for information. I know the "msgbox(...)" from VB, but these script is no real VB, isn't it?
The problem is the following: I had erased the database and added about 10 albums. Now I looked at the variables "ind" and "tot": ind changes in the range 1 to 10 I think, and tot is 0 at every time. (I check this just after creating these variables and before testing for existence, rating etc.)
So I took a look at the database with access. My AlbumID starts with 293!!! So it is clear that no Albums with IDs 1 to 10 can be found. Any idea how to repair this?
And BTW: what das the command "randomize" without any parameters?
@SpeedPete - your problem is now fixed (working on the release now) - Abel actually suggested the solution at the top of page 3 but I forgot to implement it. It wasn't till I finished implementing it that I found his post again though - oh well!
Someone requested a Genre option (can't remember who). Did they want this to be included in the MinTracks? (So the album would have to have the specfied number of tracks which matched both the minimum rating and the genre, or the album would have to have the specified number of tracks which matched the minimum rating and have at least one song from that genre?)
New version (2.0) is now available from my website!
N.B. Please remove all entries for AutoAlbumDJ from the Scripts.ini file!
- Check database for valid album id range (thanks to Abel)
- Improved memory efficiency and speed
- Abort after specified number of unsuccessful attempts
- Added option to specify genre
- Added option sheet (options stored in .ini file)