Subject: | Net::LastFM bug |
Date: | Sat, 2 May 2009 21:37:10 +0200 |
To: | bug-Net-LastFM [...] rt.cpan.org |
From: | Linton Samuel Dawson <meh [...] niin.kuin.me> |
I'm using the latest Net-LastFM-0.34
The problem is that when making request where you ask by artist and the return
is list of artists, or you ask by user and the return is list o users, only the
requested artist/user is returned.
For example, artist.getSimilar returns something like this:
-----
<lfm status="ok">
<similarartists artist="Cher">
<artist>
...
</artist>
<artist>
...
</artist>
...
-----
Now the return is
{ similarartists => { artist => "Cher" } } and nothing more
because the <similarartists artist="foo"> overrides the artist list returned :)
The same thing happens with user.getNeighbours for the same reason.
These are probably also affected by this:
track.getSimilar
user.getFriends
didn't test these two myself.