library.removeScrobble invalid method?

  • library.removeScrobble invalid method?

    I'm using an iPhone app that loves to submit scrobbles multiple times (CloudScrob), so I thought I'd try to write a little python script to weed out the dups. Turns out it's a bit tricker than I thought... the library.removeScrobble method always returns an Invalid Method error.

    I'm using the lastfm library for python and I'm pretty sure (like 99%) it's building the signature correctly. I had to add a removeScrobble method to its Library class, so maybe I messed that up. But the fact that it's saying Invalid Method and not Invalid Parameters leads me to believe that the problem isn't in my code. My code just passes a dict to the lastfm Api object, which, again, seems to be doing the right thing.

    I just want to make sure removeScrobble is still supported before I waste any more time debugging. The fact that none of the python libraries out there include the method made me wonder if it got removed at some point.


    • JRoar disse...
    • Alumni
    • Abr 4 2012, 22h04
    Hey, nope the method works fine for me, maybe we can help if you share your code.

    • wepper disse...
    • Usuário
    • Jun 18 2012, 15h59

    UNIX timestamp

    I am also facing issues with this method. I want to use it to remove duplicate scrobbles produced by CloudScrob. It produces an error code 6 which means that I have invalid parameters. COuld it be that this is produced by the timestamp? Maybe I have the wrong time zone and lastfm can not map it to the scrobble?
    Would be great to get an example for this methos request.

    • wepper disse...
    • Usuário
    • Jun 18 2012, 16h26


    Just for the record:
    I just realized that in Java Date.getTime() does not produce the UNIX timestamp. You will have to use Date.getTime()/1000.

    • wepper disse...
    • Usuário
    • Jun 18 2012, 16h29

    Scrobbles not unique

    Oh no! Just tried to remove duplicate scrobbles with this method. Unfortunately, the method removes all scrobbles with the same timestamp. Thus, not even one track is scrobbled in the end. Any way to fix this?

    • tox82max disse...
    • Usuário
    • Jun 23 2012, 15h35



    Editado por mr_maxis em Jun 23 2012, 17h35
Usuários anônimos não podem postar mensagens. É preciso fazer login ou criar uma conta para postar nos fóruns.