ScrobblerDJ v1.26, Let your music free!!!
Something about the Cint, it does not like.Select Case out_type
Case 1
For Each XElmnt In xmlDoc.getElementsByTagName("artist")
If CInt(XElmnt.ChildNodes.Item(2).Text) > MinMatch Then
XDict.Add i, XElmnt.ChildNodes.Item(0).Text
End If
i = i + 1
TimerLoop = 0
Next
New script:
Last.FM Node Now with DJ Mode!
Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

I think the problem is, XElmnt.ChildNodes.Item(2).Text is blank and the Cint function does not like that.
Why XElmnt.ChildNodes.Item(2).Text is blank, I don't know yet.
http://www.audioscrobbler.net/data/webservices/
the webservices page is not working right, its not 'down' however it is blank.
Seems that they be having some problems, I suspect that is why scrobblerdj is acting up, because the xml request returns, but it is blank.
Why XElmnt.ChildNodes.Item(2).Text is blank, I don't know yet.
http://www.audioscrobbler.net/data/webservices/
the webservices page is not working right, its not 'down' however it is blank.
Seems that they be having some problems, I suspect that is why scrobblerdj is acting up, because the xml request returns, but it is blank.
New script:
Last.FM Node Now with DJ Mode!
Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

A work around, comment out the IF line and the END IF line:
this will remove the percent similar option functionality, but seems to work ok with little to no side effects.
Code: Select all
Select Case out_type
Case 1
For Each XElmnt In xmlDoc.getElementsByTagName("artist")
' If CInt(XElmnt.ChildNodes.Item(2).Text) > MinMatch Then
XDict.Add i, XElmnt.ChildNodes.Item(0).Text
' End If
i = i + 1
TimerLoop = 0
Next
New script:
Last.FM Node Now with DJ Mode!
Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

-
harpagornis
- Posts: 30
- Joined: Thu Oct 05, 2006 9:33 am
Better would be to error catch the value, like this...
N.B. Also Int tends to work better than CInt.
Code: Select all
See psyxonova's post below
Last edited by trixmoto on Wed Mar 28, 2007 10:50 am, edited 1 time in total.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Appers to be something wrong with their web service.
http://ws.audioscrobbler.com/1.0/artist ... imilar.xml
The match element appears to be broken. Strangely their test Metallica one works ok.
http://ws.audioscrobbler.com/1.0/artist ... imilar.xml
The match element appears to be broken. Strangely their test Metallica one works ok.
For some strange reason, LAST.FM serves some xmls with the <match> element empty... That's why problem occurs
QUICKFIX (haven't tried it but it should work): go at line 297 in ScrobblerDJ.vbs and replace
with
QUICKFIX (haven't tried it but it should work): go at line 297 in ScrobblerDJ.vbs and replace
Code: Select all
If CInt(XElmnt.ChildNodes.Item(2).Text) > MinMatch Then
XDict.Add i, XElmnt.ChildNodes.Item(0).Text
End If
Code: Select all
If XElmnt.ChildNodes.Item(2).Text <> "" Then
If CInt(XElmnt.ChildNodes.Item(2).Text) > MinMatch Then
XDict.Add i, XElmnt.ChildNodes.Item(0).Text
End If
Else
XDict.Add i, XElmnt.ChildNodes.Item(0).Text
End If
Last edited by psyXonova on Thu Mar 29, 2007 4:31 am, edited 1 time in total.