Last.fm Web Services » Discussions

Offline Scrobbling

 
  • Offline Scrobbling

    Hello,

    I'm trying to implement offline scrobbling into my app, but it's not working correctly.

    I am saving the Scrobble requests to an array, and sending the requests when the app detects an internet connection. I am sending the requests with the exact same metheod I am sending as if it was a "live scrobbling."

    Last.fm is returning me an OK status, but it's just not scrobbling.

    It's not a problem with the array, neither with the metheod I'm calling, because it works on live scrobbling.

    Is there any different API call I need to do for offline scrobbling?

    Thanks.

    • tburny said...
    • Forum Moderator
    • 24 Oct 2010, 15:37
    "OK" only means all required parameters were sent, it hasn't anything to do with validation :)
    See http://www.last.fm/api/submissions

    You have to pay attention that timestamps are all correct and nothing has been scrobbled before :)

    Combo.fm: Combine your favourite radio stations! | My Blog | scala-lastfmapi
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
  • Hmm. All the timestamps are the same as when it was added to that array, and I don't think changing the timestamp from when the song has started playing is a good idea.

    Any other idea? :s

  • If someone is wondering, this is what I am passing to last.fm, apart from the sessionID.

    {
    album = "Mario the Music";
    artist = "Super Mario";
    genre = Jogo;
    name = "Ending BGM";
    songLength = "37.147";
    startTime = 1287959361;
    }

    • tburny said...
    • Forum Moderator
    • 24 Oct 2010, 23:03
    maybe try to use fix(songLength) to strip off the decimal part :) it is said "in seconds" in the docs, so maybe in integer seconds

    Combo.fm: Combine your favourite radio stations! | My Blog | scala-lastfmapi
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
  • I can try that, but it is what I am sending when I'm scrobbling normally, so no idea why it would work different.

Anonymous users may not post messages. Please log in or create an account to post in the forums.