Closed GoogleCodeExporter closed 9 years ago
Artist.getTopAlbums does not return a track listing for each album. Similarly,
artist.getTopTracks does not return the album information for each track.
Hence, Album#getTracks() or Track#getAlbum() will return null when using those
services, respectively.
A track listing for albums is only returned on album.getInfo calls. Please
refer to the official documentation to see what data is returned by what
services:
http://www.last.fm/api/show/artist.getTopAlbums
http://www.last.fm/api/show/artist.getTopTracks
http://www.last.fm/api/show/album.getInfo
Original comment by jannikov...@gmail.com
on 2 Jul 2013 at 3:17
Hi
I tried Album.getInfo(band.getName(), album.getName(), key);
it worked for the first three times.
Now i got this error message:
[Fatal Error] :1:1: Premature end of file.
Exception in thread "main" de.umass.lastfm.CallException:
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of
file.
at de.umass.lastfm.Caller.call(Caller.java:268)
at de.umass.lastfm.Caller.call(Caller.java:189)
at de.umass.lastfm.Album.getInfo(Album.java:117)
at de.umass.lastfm.Album.getInfo(Album.java:95)
at lastfm.LastFM.main(LastFM.java:118)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1;
Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
at de.umass.lastfm.Caller.createResultFromInputStream(Caller.java:324)
at de.umass.lastfm.Caller.call(Caller.java:256)
... 4 more
Java Result: 1
I think it's because of Caller.getInstance().setUserAgent(user)
when i removed it the same error appears
thanks in advance
Original comment by peerana...@gmail.com
on 2 Jul 2013 at 10:02
Original issue reported on code.google.com by
peerana...@gmail.com
on 1 Jul 2013 at 10:19