Package net.roarsoftware.lastfm.scrobble

Examples of net.roarsoftware.lastfm.scrobble.ResponseStatus.ok()


        Scrobbler scrobbler = getScrobbler(session);
        if (scrobbler != null) {
          ResponseStatus status = scrobbler.submit(currentTrack.getArtist(), currentTrack.getName(),
              currentTrack.getAlbum(), currentTrack.getDuration(), currentTrack.getPosition(),
              Source.USER, startPlaybackTime);
          LOGGER.debug("Submit OK: " + status.ok());
        } else {
          LOGGER.error("Can't scrobble now");
        }
      } catch (Exception e) {
        LOGGER.debug(e);
View Full Code Here


              currentTrack.getAlbum(), true);
          setMusicName(currentTrack.getArtist() + " - " + currentTrack.getName());
          Scrobbler scrobbler = getScrobbler(session);
          if (scrobbler != null) {
            ResponseStatus status = scrobbler.nowPlaying(currentTrack.getArtist(), currentTrack.getName());
            LOGGER.debug("Submit OK: " + status.ok());
          } else {
            LOGGER.error("Can't scrobble now");
          }
        } catch (Exception e) {
          LOGGER.debug("Error on calling nowPlaying: " + e.getMessage());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.