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);