private void scrobbleSong(Session session) {
long now = System.currentTimeMillis() / 1000;
long totalPlayed = now - startPlaybackTime;
if (totalPlayed > 40) {
try {
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");