Fórum » Development Discussion

Is there an API to check if track is loved?

 
    • fkemilau disse...
    • Usuário
    • Mar 20 2012, 13h56

    Is there an API to check if track is loved?

    Hi,

    I couldn't find an API to check if track is loved, given the artist name and track's title. Is there any?

    Right now, I am using User.getLovedTracks, but for some artists, their names could be slightly different. Because of this, I couldn't use it in string comparison.

    Best regards,
    Fedry

    • tburny disse...
    • Forum Moderator
    • Mar 21 2012, 8h46
    Maybe you can use artist.getInfo with autocorrection to get the "correct" artist name before matching it against user.getLovedTracks

    Combo.fm: Combine your favourite radio stations! | My Blog | scala-lastfmapi | Cache2k - A high performance Java in-memory cache
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
  • Method track.getInfo with the parameter username={username} is meant to return loved status & user's playcount. Although it's not that reliable.

    • fkemilau disse...
    • Usuário
    • Mar 29 2012, 9h55
    Thank you for the answers. I'll try both. :)

Usuários anônimos não podem postar mensagens. É preciso fazer login ou criar uma conta para postar nos fóruns.