Giter Club home page Giter Club logo

lastfm-java's People

Contributors

ben-xo avatar eltmon avatar jkovacs avatar meoyawn avatar pfdevmuller avatar wheavin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lastfm-java's Issues

java.lang.NumberFormatException: For input string: "FIXME"

Track.search throws an exception when calling it.
For example a call of Track.search("Lacuna coil", key);

DEC 28, 2017 5:05:49 PM de.umass.lastfm.Caller openConnection
INFO: Open connection: http://ws.audioscrobbler.com/2.0/
DEC 28, 2017 5:05:49 PM de.umass.lastfm.Caller openPostConnection
INFO: Post body: method=track.search&limit=30&track=Lacuna+coil&api_key=API_KEY
Exception in thread "main" java.lang.NumberFormatException: For input string: "FIXME"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at de.umass.lastfm.MusicEntry.loadStandardInfo(MusicEntry.java:207)
	at de.umass.lastfm.Track$TrackFactory.createItemFromElement(Track.java:697)
	at de.umass.lastfm.Track$TrackFactory.createItemFromElement(Track.java:694)
	at de.umass.lastfm.ResponseBuilder.buildCollection(ResponseBuilder.java:70)
	at de.umass.lastfm.ResponseBuilder.buildCollection(ResponseBuilder.java:61)
	at de.umass.lastfm.Track.search(Track.java:216)
	at de.umass.lastfm.Track.search(Track.java:191)
	at nz.mega.bindingsample.Test.main(Test.java:31)

Artist.getInfo() returns null, when "username" parameter is present.

de.umass.lastfm.CallException: java.io.IOException: closed

is thrown at this line, Caller.createResultFromInputStream() method:

Document document = this.newDocumentBuilder().parse(new InputSource(new InputStreamReader(inputStream, "UTF-8")));

I know this repo is not maintained, but perhaps someone has encountered this and knows why this is happening? Help would be appreciated.

Can't create request on Android

For whatever reason, I'm unable to make any requests on Android. Logcat only shows that the request is being opened, but nothing else.

Upon importing the source into Android studio, I can trace it back as far as into the openPostConnection method. The part where the urlConnection's OutputStream is passed into the outputStream variable is never called, and stops after "urlConnection.setDoOutput(true);". However, if I set a System.out after urlConnection.setDoOutput(true), this is called. It just breaks off entirely after that, no exceptions seem to be thrown, and any of my code after my initial "User.getWeeklyAlbumChart" is not executed, completely broken off. I am unsure what is happening.

I came across this Stackoverflow question: http://stackoverflow.com/questions/8438415/last-fm-api-call-from-android-application
And tried setting cache to null as the answer suggested, but this had no effect on anything.

My code is simplistic enough code that doesn't require authentication of the user, just getting their top tracks for the week (Android port of my lastfm-collage-generator repository). Internet permission is declared in the manifest and my device is online.

Any idea as to what on earth could be going on? Any possible solutions?

Thanks

Check whether a session is valid

After calling

	session = Authenticator.getMobileSession( username, password, key, secret );

Is there a way to check whether that session is valid, and if not, why it failed (i.e. bad username / password, no internet connection, etc.)

Thank you!

Events issue

I've been using this library to query for events from a list of ~500 popular artists and I get no results. My code worked fine up untill a couple months ago. Wondering if anything changed?

Non-synchronized user changes

The changes were not synchronized in the maven dependency, see the image:
image
With this, we still have problem in the requisition

Search produces NumberFormatException with "FIXME"

When attempting to use the search function, it seems like it tries to parse "FIXME" as an Integer.

Exception in thread "main" java.lang.NumberFormatException: For input string: "FIXME"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68)
	at java.base/java.lang.Integer.parseInt(Integer.java:652)
	at java.base/java.lang.Integer.parseInt(Integer.java:770)
	at de.umass.lastfm.MusicEntry.loadStandardInfo(MusicEntry.java:207)
	at de.umass.lastfm.Track$TrackFactory.createItemFromElement(Track.java:697)
	at de.umass.lastfm.Track$TrackFactory.createItemFromElement(Track.java:694)
	at de.umass.lastfm.ResponseBuilder.buildCollection(ResponseBuilder.java:70)
	at de.umass.lastfm.ResponseBuilder.buildCollection(ResponseBuilder.java:61)
	at de.umass.lastfm.Track.search(Track.java:216)

Support lang for album.getInfo

Artist.getInfo currently supports an optional Locale parameter to request a response in a particular language; Album.getInfo should support this as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.