Simple way of getting the Last.fm artist image for recently listened songs?
Posted
by animuson
on Stack Overflow
See other posts from Stack Overflow
or by animuson
Published on 2010-05-31T21:08:28Z
Indexed on
2010/05/31
21:13 UTC
Read the original article
Hit count: 284
On the Last.fm website, your recently listened track include the 34x34 (or whatever size) image at the left of each song. However, in the RSS feed that they give you, no image URLs are provided for the songs. I was wondering if there was a good way of figuring out the ID for the image that needs to be used for that artist and displaying it based on the data that we're given. I know it is possible to load the artist page from their website and then grab the image values from JavaScript, but that seems overly complicated and would probably take quite some time to do.
What we're given:
<item>
<title>Owl City – Rainbow Veins</title>
<link>http://www.last.fm/music/Owl+City/_/Rainbow+Veins</link>
<pubDate>Thu, 20 May 2010 18:15:29 +0000</pubDate>
<guid>http://www.last.fm/user/animuson#1274379329</guid>
<description>http://www.last.fm/music/Owl+City</description>
</item>
and the 34x34 image for this song would be here (ID# 37056785).
Does anything like this exist? I've considered storing the ID number in a cache of some sort once it has been checked once, but what if the image changes?
© Stack Overflow or respective owner