ScrobblerDJ v1.26, Let your music free!!!

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

Moderators: Peke, Gurus

loubob73
Posts: 24
Joined: Wed Feb 28, 2007 1:18 am
Location: Phoenix, AZ.

Weird

Post by loubob73 »

Mahalia Jackson

Dwight Yoakam

Lee Dorsey

Mike Viola



No pattern that I can see. No strange characters in the names or anything.
loubob73
Posts: 24
Joined: Wed Feb 28, 2007 1:18 am
Location: Phoenix, AZ.

Post by loubob73 »

Do you know what the line and column numbers in the error message refer to? Line 297, Column 16. Does that refer to anything specific?
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

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
Something about the Cint, it does not like.
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

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.
loubob73
Posts: 24
Joined: Wed Feb 28, 2007 1:18 am
Location: Phoenix, AZ.

OK Then

Post by loubob73 »

OK, I guess we just wait then. Thanks for the investigative work Teknojnky.
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

A work around, comment out the IF line and the END IF line:

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 
this will remove the percent similar option functionality, but seems to work ok with little to no side effects.
Guest

Post by Guest »

seems to be working again.
loubob73
Posts: 24
Joined: Wed Feb 28, 2007 1:18 am
Location: Phoenix, AZ.

Post by loubob73 »

Anonymous wrote:seems to be working again.
I'm still getting errors
harpagornis
Posts: 30
Joined: Thu Oct 05, 2006 9:33 am

Post by harpagornis »

Workin for me. for sure

did you do the copy and paste Teknojnky suggested?
Wouter Janssen
loubob73
Posts: 24
Joined: Wed Feb 28, 2007 1:18 am
Location: Phoenix, AZ.

Post by loubob73 »

Yeah, that works. Thanks for the help Tekno
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Better would be to error catch the value, like this...

Code: Select all

See psyxonova's post below
N.B. Also Int tends to work better than CInt.
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.
Azaniah
Posts: 28
Joined: Thu Jun 01, 2006 6:57 am

Post by Azaniah »

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.
psyXonova
Posts: 785
Joined: Fri May 20, 2005 3:57 am
Location: Nicosia, Cyprus
Contact:

Post by psyXonova »

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

Code: Select all

                If CInt(XElmnt.ChildNodes.Item(2).Text) > MinMatch Then
                    XDict.Add i, XElmnt.ChildNodes.Item(0).Text
                End If
with

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.
Guest

script

Post by Guest »

I get this error trying to run this script (it was working fine for a day or so)

error #13 - Microsoft VBScript runtime error
type mismatch: "CInt"
File: "C:\Program Files\Media Monkey\Scripts\ScrobblerDJ.vbs",Line: 297, Column 16
harpagornis
Posts: 30
Joined: Thu Oct 05, 2006 9:33 am

Post by harpagornis »

check the post above
Wouter Janssen
Locked