Forum » Development Discussion

Is there an API to check if track is loved?

    • fkemilau ha detto...
    • Utente
    • Mar 20 2012, 13:56

    Is there an API to check if track is loved?


    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,

    • tburny ha detto...
    • Forum Moderator
    • Mar 21 2012, 8:46
    Maybe you can use artist.getInfo with autocorrection to get the "correct" artist name before matching it against user.getLovedTracks 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 ha detto...
    • Utente
    • Mar 29 2012, 9:55
    Thank you for the answers. I'll try both. :)

Gli utenti anonimi non possono inviare messaggi. Per inserire messaggi nei forum, accedi o crea il tuo account.