Foro » Development Discussion

Is there an API to check if track is loved?

 
    • fkemilau escribió...
    • Usuario
    • 20 Mar 2012, 13:56

    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 escribió...
    • Forum Moderator
    • 21 Mar 2012, 8:46
    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 escribió...
    • Usuario
    • 29 Mar 2012, 9:55
    Thank you for the answers. I'll try both. :)

Los usuarios anónimos no pueden escribir mensajes. Para participar en los foros inicia sesión o crea una cuenta.