Forum » Development Discussion

Is there an API to check if track is loved?

    • fkemilau schrieb...
    • Benutzer
    • 20. Mär. 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 schrieb...
    • Forum Moderator
    • 21. Mär. 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 schrieb...
    • Benutzer
    • 29. Mär. 2012, 9:55
    Thank you for the answers. I'll try both. :)

Anonyme Benutzer dürfen keine Beiträge schreiben. Bitte log dich ein oder registriere dich, um Beiträge in den Foren schreiben zu können.