kinyerakenneth / lastfm-java

Automatically exported from code.google.com/p/lastfm-java
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Artist.getTopTracks no more works with french artists #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
String art ="henry salvador";
        Collection<Track> topTracks = Artist.getTopTracks(art, key);
System.out.println("Top Tracks :");

for (Track track : topTracks) {

What is the expected output? What do you see instead?

java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:468)
    at java.lang.Integer.parseInt(Integer.java:497)
    at de.umass.lastfm.Track$TrackFactory.createItemFromElement(Track.java:653)
    at de.umass.lastfm.Track$TrackFactory.createItemFromElement(Track.java:645)
    at de.umass.lastfm.ResponseBuilder.buildCollection(ResponseBuilder.java:70)

What version of the product are you using? On what operating system?
MacOS X 10.5 JAVA 1.5 and last.fm-bindings-0.1.0

Please provide any additional information below.
This new issue appear with french artist with a name separate with a space.
I try also to URLencode the string but same issue

Original issue reported on code.google.com by grah...@gmail.com on 21 Feb 2011 at 9:30

GoogleCodeExporter commented 9 years ago
Also when i try the topTracks from aMbid id i get a error :
    String MbidArt= artiste.getMbid();
    Collection<Track> topTrack =Artist.getTopTracks(MbidArt, key);
========
open: http://ws.audioscrobbler.com/2.0/
body: 
method=artist.getInfo&lang=fr&username=Smiling8Waving&artist=chico+buarque&api_k
ey=xxxxxx
open: http://ws.audioscrobbler.com/2.0/
body: 
method=artist.getTopTracks&artist=3a5d1cc7-627e-48ea-aba3-fdd20d782c33&api_key=x
xxxxx
Failed. Code: 6, Error: The artist you supplied could not be found

Original comment by grah...@gmail.com on 21 Feb 2011 at 9:40

GoogleCodeExporter commented 9 years ago

Original comment by jannikov...@gmail.com on 22 Feb 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Thanks !
Gilles 
www.tousdehors.fr
toute l'actualité et les avis critiques sur les concerts

Original comment by grah...@gmail.com on 22 Feb 2011 at 9:08

GoogleCodeExporter commented 9 years ago
Issue 36 has been merged into this issue.

Original comment by jannikov...@gmail.com on 12 Oct 2011 at 10:41

GoogleCodeExporter commented 9 years ago
Issue 37 has been merged into this issue.

Original comment by jannikov...@gmail.com on 4 Dec 2011 at 11:37