Auto Album DJ 3.8 - Updated 08/08/2010

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

mohikaani
Posts: 63
Joined: Wed Oct 31, 2007 2:25 pm

Post by mohikaani »

I'm getting error:

Code: Select all

Error #13 - Microsoft VBScript runtime error
Type mismatch: '[string: "-1.0"]'
File: "C:\Program Files\MediaMonkey\Scripts\AutoAlbumDJ3.vbs", Line: 523, Column: 8
which is:
tot = (iter.ValueByName("AvgRating")/20)

Debug log:

Code: Select all

[GenerateNewTrack]
MinTracks = 5
AvgRating = -1
MinRating = -1
Capacity  = 10
Attempts  = 100
TheGenre  = 
Mode3f1   = False
MaxTracks = 999
Unplayed  = False
Earliest  = 
MaxDays   = 9999
AvgPlays  = 999
min(id)   = 1
max(id)   = 12568
tot(id)   = 3634
10326 has 0 tracks above minimum rating (too few)
12541 has 1 tracks above minimum rating (too few)
9411 has 0 tracks above minimum rating (too few)
1186 has 0 tracks above minimum rating (too few)
11943 has 0 tracks above minimum rating (too few)
8075 has 0 tracks above minimum rating (too few)
12233 has 0 tracks above minimum rating (too few)
2456 has 0 tracks above minimum rating (too few)
7203 has 0 tracks above minimum rating (too few)
Using latest version 3.0.2.1134 and I have only few tracks rated.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

That's strange, "-1.0" should be a valid value. You could try replacing that line with this...

Code: Select all

tot = (iter.StringByName("AvgRating")/20)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
mohikaani
Posts: 63
Joined: Wed Oct 31, 2007 2:25 pm

Post by mohikaani »

Getting same error :-?

I´ve tried to uninstall and install the script and even whole MediaMonkey but no use. Is there a way to reset all the settings?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

You can reset the settings by making sure MM is closed and then find your MediaMonkey.ini file and opening in a text editor. Find the "[AutoAlbumDJ]" section and delete all the keys. If this doesn't fix the problem then I'll have to investigate further, but I can't replicate it at the moment.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
mohikaani
Posts: 63
Joined: Wed Oct 31, 2007 2:25 pm

Post by mohikaani »

I can´t get it working. Maybe my MM is messed up with all the beta testing...
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

I'll investigate and see if I can replicate.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Azaniah
Posts: 28
Joined: Thu Jun 01, 2006 6:57 am

Post by Azaniah »

Unless I am blind, I can't see any option to use Auto Album DJ.

Using the latest beta, version, but I see no added options, or icons to run this.

Am I being extra special thick today? lol
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

In MM3 it is built into the AutoDJ. Go to "Tools > Options > Player > Auto-DJ / Now Playing". Tick "Enable Auto-DJ" and select "Auto Album DJ" in the "Select tracks from" dropdown.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Azaniah
Posts: 28
Joined: Thu Jun 01, 2006 6:57 am

Post by Azaniah »

Ahh, different from before.

I set AvgRating and MinRating in MediaMonkye.ini to be -1
I also have maintain at least 10 tracks set in autoDJ.

However, when it selects an album, if that album has more than 10 tracks it doesn't select all of them. Again I might be missing something obvious.
Azaniah
Posts: 28
Joined: Thu Jun 01, 2006 6:57 am

Post by Azaniah »

Seem to me (and I haven't done any VBscripting in a LONG time), the MM calls the GenerateNewTrack function, but somehow the list is limited to the value in "maintain at least" in autoDJ.

It only ever adds a maximum of 10 (regardless of how many tracks on the album).

No idea what prompts GenerateNewTracks to be called, but I figure something funky is going on - and I don't mean the music. ;)
Azaniah
Posts: 28
Joined: Thu Jun 01, 2006 6:57 am

Post by Azaniah »

OK it seems that I didn't follow what was going here that well.

Apparantly, you add tracks via AutoAlbumDJ. Each time you play a track the now-playing function calls GenerateNewTrack (which determines if the list is empty or not) and populates the next track / fills list etc.

So you never actually "see" all the tracks in the now playing list, although they are queued up behind the scenes.

If that is correct, can anyone tell me where the now playing is kept? I can't see anything obvious in the db, nor the .ini file. Can't be held in memory as it persists through a reboot. Checked Registry and can't anything obvious there either.

Thanks
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

the now playlist is maintained as 'mediamonkey.m3u' in the normal configuration folder dependant on your OS (same place as mediamonkey.mdb or mm.db are stored).

Database location
Windows XP: C:\Documents and Settings\<USERNAME>\Local Settings\Application Data\MediaMonkey\MM.DB
Windows Vista: C:\Users\<USERNAME>\AppData\Local\MediaMonkey\MM.DB


or for mm 2.x, the my documents\my music\mediamonkey\ folder.
Azaniah
Posts: 28
Joined: Thu Jun 01, 2006 6:57 am

Post by Azaniah »

Great,

So my issue is that due to the fact the AutoAlbumDJ is holding it's list as a tempary object, and AutoDJ appears to limit the number of tracks to 10, if you shutdown MM, you lose any tracks from the AADJ list that had yet to populate the .m3u file.

It's the maintain "at least" 10 tracks that is bugging me. Is there hidden setting that will allows this value to be increased? So that an entire album is actually populated to the now playing list, which will persist if MM is closed.

Thanks for all your help btw :) - learning lots in the last 10 mins :o
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

As far as I know, there is no way to change the auto-dj limits from what is available in the drop down.

I haven't used the script, but perhaps auto-dj could be configured to enqueue 1 track, but the script enqueue the whole album regardless of number of tracks.
Azaniah
Posts: 28
Joined: Thu Jun 01, 2006 6:57 am

Post by Azaniah »

That's a shame, as that's what I would like to be able to do - populate the list with an entire album. Seems like AutoDJ limits the number of tracks you can physically add - which is why (I assume - so please don't shout) Trixmoto used the List Object to hold the tracks in the background.

I was hoping the functionality would be like the 2.5MM version, but it appears not.
Post Reply