Utterly pointless Drupal module for Last.fm/Audioscrobbler

You know how you start doing something then wish you hadn't when you realise it's one in the morning and you've got work the next day? This happened to me yesterday.

I've recently started using Rhythmbox as my music player, rather than Quod Libet. I like Quod Libet, but the main feature it has over Rhythmbox (edit ID3 tags from the interface) seemed to stop working. So I switched over. As a bonus, Rhythmbox has an option to show recently-added tracks, which is great. It also supports the Audioscrobbler API, so it will track what you're listening to. It will then adapt your Last.fm play list according to your tastes.

Showing me an API is like a red rag to a bull, so I spent yesterday evening pointlessly working out how to write a Drupal module to display the last few tracks in my recent tracks list on Audioscrobbler. So you can now all despair about my music taste (see side bar). Any poor misguided soul who is interested in the code, let me know and you can have it. The only reason I've not released it is because it is one of the more futile things I've written. I mean, who really cares what I'm listening to? It barely impinges on my consciousness so is likely to mean nothing to everyone else. Blah blah...

Comments

I'd love to see your code,

I'd love to see your code, too!

Hi Ezra. Now I've got two

Hi Ezra. Now I've got two requests for it, I'll do my best to update it to Drupal 5 shortly. Probably next week before I get round to it.

I'm looking at creating a

I'm looking at creating a similar module. Are you parsing the XML with PHP 5? i'd be glad to see whatever code you have so far.

Hi Ezra. I am parsing the

Hi Ezra. I am parsing the XML with PHP 5. In fact, I've put the new version up, attached to my latest blog post. You can also get to it in the code section. Hope it's helpful.

Hello David, You are more

Hello David,

You are more than welcome to the code, though it doesn't work nicely with PHP 5 at the moment. Once I've been through and fixed the bugs I'll post a new entry with file attachment.

last.fm... + drupal

Hi,

I took the lazy approach and just cut and pasted the javascript stuff they give you into one random page (http://www.codepoets.co.uk/david/podiobooks_and_music); I'd be interested in the module, although it might not help the already cluttered feel my site has)

Thanks
David.