Forum » Development Discussion

Is there an API to check if track is loved?

  • 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 said...
    • Forum Moderator
    • 21 Mar 2012, 08: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.

  • Thank you for the answers. I'll try both. :)

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