SciLor's Open Source Forums

Also visit my Website!
It is currently Thu Mar 28, 2024 11:29 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Bug in all Downloaders
PostPosted: Wed May 11, 2011 10:20 pm 
I have written a gui for the java grooveshark(tm) downloader and was experiencing some trouble with the method: SearchArtist(searchString).result.result; in GrooveSharkClient.
The function call went into infinite loop. So i tried your original grooveshark(tm) downloader and got following error:

Debug Log:
[11.05.2011 22:11:57] Start reconnecting...
[11.05.2011 22:12:00] Searching...
[11.05.2011 22:12:01] Reconnected!
[11.05.2011 22:12:03] Error: System.Exception - Expected a JsonObjectContract or JsonDictionaryContract for type 'System.Collections.Generic.List`1[SciLorsGroovesharkAPI.Groove.Functions.SearchArtist+SearchArtistResult]', got 'Newtonsoft.Json.Serialization.JsonArrayContract'. (
{"header":{"session":"af6db8ee80bac1f673d0443279bc15d4","serviceVersion":"20100903","prefetchEnabled":true},"result":{"result":{"Songs":[{"SongID":"24126399","AlbumID":"3582490","ArtistID":"124291","GenreID":"16","Name":"NYT REPPU JUPISET RIIMISI RUPISET","SongName":"NYT REPPU JUPISET RIIMISI RUPISET","AlbumName":"Repullinen Hittej\u00e4 Disc 1","ArtistName":"Eppu Normaali","Year":"1996","TrackNum":"3","CoverArtFilename":"3582490.jpg","TSAdded":"1262611327","AvgRating":0,"AvgDuration":0,"EstimateDuration":249,"Flags":0,"IsLowBitrateAvailable":"0","IsSponsored":"0","IsVerified":"0","SongVerified":"0","AlbumVerified":0,"ArtistVerified":1,"Popularity":0,"AlbumPopularity":0,"ArtistPopularity":1106300021,"SongPlays":0,"ArtistPlays":291,"SphinxWeight":1200654,"Score":28426.975340604,"SphinxSortExpr":16998,"Rank":1},{"SongID":"28404862","AlbumID":"5478372","ArtistID":"124291","GenreID":"24777","Name":"Eih\u00e4n t\u00e4m\u00e4n nyt n\u00e4in pit\u00e4nyt olla","SongName":"Eih\u00e4n t\u00e4m\u00e4n nyt n\u00e4in pit\u00e4nyt olla","AlbumName":"Reppu 2","ArtistName":"Eppu Normaali","Year":"2003","TrackNum":"8","CoverArtFilename":"","TSAdded":"1293916888","AvgRating":0,"AvgDuration":0,"EstimateDuration":0,"Flags":0,"IsLowBitrateAvailable":"0","IsSponsored":"0","IsVerified":"0","SongVerified":"0","AlbumVerified":0,"ArtistVerified":1,"Popularity":0,"AlbumPopularity":0,"ArtistPopularity":1106300021,"SongPlays":0,"ArtistPlays":291,"SphinxWeight":1340654,"Score":22506.78715503,"SphinxSortExpr":17108,"Rank":0.79174048189651},{"SongID":"28404794","AlbumID":"5478372","ArtistID":"124291","GenreID":"24777","Name":"Kaikki h\u00e4ipyy, on vain nyt","SongName":"Kaikki h\u00e4ipyy, on vain nyt","AlbumName":"Reppu 2","ArtistName":"Eppu Normaali","Year":"2003","TrackNum":"1","CoverArtFilename":"","TSAdded":"1293916508","AvgRating":0,"AvgDuration":0,"EstimateDuration":0,"Flags":0,"IsLowBitrateAvailable":"0","IsSponsored":"0","IsVerified":"0","SongVerified":"0","AlbumVerified":0,"ArtistVerified":1,"Popularity":0,"AlbumPopularity":0,"ArtistPopularity":1106300021,"SongPlays":0,"ArtistPlays":87.3,"SphinxWeight":1340654,"Score":21931.773779753,"SphinxSortExpr":17108,"Rank":0.77151274509413},{"SongID":"28404837","AlbumID":"5478372","ArtistID":"124291","GenreID":"24777","Name":"El\u00e4m\u00e4n tarkoitus","SongName":"El\u00e4m\u00e4n tarkoitus","AlbumName":"Reppu 2","ArtistName":"Eppu Normaali","Year":"2003","TrackNum":"6","CoverArtFilename":"","TSAdded":"1293916781","AvgRating":0,"AvgDuration":0,"EstimateDuration":0,"Flags":0,"IsLowBitrateAvailable":"0","IsSponsored":"0","IsVerified":"0","SongVerified":"0","AlbumVerified":0,"ArtistVerified":1,"Popularity":0,"AlbumPopularity":0,"ArtistPopularity":1106300021,"SongPlays":0,"ArtistPlays":87.3,"SphinxWeight":544701,"Score":16038.687293583,"SphinxSortExpr":16207,"Rank":0.56420660662668},{"SongID":"28404953","AlbumID":"5478372","ArtistID":"124291","GenreID":"24777","Name":"L\u00e4pivalaistu","SongName":"L\u00e4pivalaistu","AlbumName":"Reppu 2","ArtistName":"Eppu Normaali","Year":"2003","TrackNum":"16","CoverArtFilename":"","TSAdded":"1293917469","AvgRating":0,"AvgDuration":0,"EstimateDuration":0,"Flags":0,"IsLowBitrateAvailable":"0","IsSponsored":"0","IsVerified":"0","SongVerified":"0","AlbumVerified":0,"ArtistVerified":1,"Popularity":0,"AlbumPopularity":0,"ArtistPopularity":1106300021,"SongPlays":0,"ArtistPlays":87.3,"SphinxWeight":544693,"Score":16038.64516393,"SphinxSortExpr":16207,"Rank":0.56420512459591}]},"version":"PostProcess","askForSuggestion":false}})

It seems that Grooveshark(tm) has updated something so that your API stopped working.
If you want to check out my gui. It's here http://jokke.bplaced.net/Files/GrooveLoader/
I've credited you in the about window.


Top
  
 
 
Online
The Adswinger

Joined: Wed Jan 13, 2010 11:56 pm
Posts: Too many!
Donated: Ad Posts


PostPosted: Wed May 11, 2011 10:24 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated:
Thank you for sending me that error, some other users also noticed it. It seems to be a region specific problem where the grooveshark(tm).com website uses a different api. I really need to fix that :D.
It should be fine if you use a proxy. Seems to be a problem in the US only.

I will take a look at the GUI when I have time, thank you :)

_________________
My Windows Mobile and Windows Open Source Website:


Like my work? Donate!


My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
PostPosted: Thu May 12, 2011 10:50 am 
I'm running the program from Germany, so it's not only US. Thanks for looking into it though!

Okay.. Weird.. Now it seems to be working again.. Would it be possible to get the source code for the java api? And/or the javadoc? I would like to change some minor things in the code, like integrating the GrooveFix.xml as a resource into my runnable jar file. For now I've made a workaround, so that the file is actually stored in the jar as a resource and is copied into the running directory if necessary. Still it would be neat to have a single executable without the xml around.

What about distribution.. Can I give away copies of my prog? I've disclaimed copyright to my name, but I'm not sure if this is right? As I've said before, I've credited you in the About page. Is that sufficient? Will GrooveShark(tm) sue me?? I've been careful only to mention the name with the (tm) sign.

Another thing: I've implemented multithreaded downloading of the songs. It seems to work a lot faster than cued downloads. Maybe you should consider doing that in the next version of your Downloader for Windows. Just an idea. In the mean while I will try to clean up my code and document it properly so that you can actually make some sense out of the source, if you're interested. :P It's pretty quick 'n' dirty for now.

Sorry, most of this is clearly off topic. I didn't want to open up a thread for all of this.


Top
  
 
PostPosted: Fri May 13, 2011 3:01 am 
The GroovesharkClient class has a second argument where you can pass the groovefix xml content as String.
It´s funny because I build pretty much the same as a Eclipse View:
http://www.abload.de/image.php?img=unbenannth75n.png
http://www.abload.de/image.php?img=unbenannt2t7ua.png
Thx SciLor for your awesome work!
Would be nice if the playlist would be also accessible via the Java API.
gn8


Top
  
 
PostPosted: Tue May 17, 2011 7:42 pm 
Sorry, this is gonna be a load.. I get the following stack trace in java:

http://pastebin.com/TPYEbgUU

Is this the same bug? Thanks for looking into it! My Gui has moved to http://jokke.bplaced.net/Files/GrooveLoader/ btw.


Top
  
 
PostPosted: Tue May 17, 2011 7:46 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated:
Yes, it is the same. I am currently working on a fix.

_________________
My Windows Mobile and Windows Open Source Website:


Like my work? Donate!


My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
template->_php_include(): File ./counter/foruminclude.php does not exist or is empty Powered by phpBB® Forum Software © phpBB Group