Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-11 16:05:08

tkn
Member
From: New York
Registered: 2004-06-29
Posts: 39
Website

[request] Another shot at Last.fm integration

So given the apparent death of the audioscrobbler plugins, I have been looking for another way to put my “now playing” on the web site with cover art. I went back to using the old iTunesWatcher for Mac software which works okay (you can see it here, but it essentially has an Applescript running to submit entries into a mysql database.

So I was wondering, would it be possible to change it to parse out the Last.fm recent feeds maybe using SimplePie instead of using the database to acquire its information? I took a couple stabs at it, but I am such a PHP hack that I couldn’t get it working.

The advantages would mainly be in not requiring me to have the Applescript running and for it to be direct with Last.fm. Plus, eventually, I guess you could package it up as a plugin and have it be relatively plug-and-play and have it support multiple feeds from Last.fm. It also would be platform agnostic as well.

Anyone have any thoughts on the matter?

Offline

#2 2007-03-14 00:04:05

draganbabic
Member
From: Novi Sad, Serbia
Registered: 2006-09-27
Posts: 118
Website

Re: [request] Another shot at Last.fm integration

I would love to see this happen.

Offline

#3 2007-03-14 09:30:43

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

Re: [request] Another shot at Last.fm integration

Would be very, very, very nice!

Offline

#4 2007-03-14 12:53:42

Christopher
Member
From: T.O.
Registered: 2004-05-27
Posts: 42
Website

Re: [request] Another shot at Last.fm integration

I’ve done something similar with the bit_rss plugin. It uses SimplePie to parse out my recent Last.fm tracks as a list. No cover art though. Is this close to what you are after?

Offline

#5 2007-03-14 13:05:15

tkn
Member
From: New York
Registered: 2004-06-29
Posts: 39
Website

Re: [request] Another shot at Last.fm integration

Definitely. The trick is getting the cover art to work with it, and all the code is already in php form in iTunesWatcher, so I was trying to figure out how to parse the feed and replace the functions which normally draw from the mysql database and change them over to the rss feed. Then I realized I was in over my head which is why I posted on Plugin Request. It is a real shame too, because rmc_audioscrobbler seemed to do this, but it depends on an unavailable version of the Amazon SDK and the author seems to have disappeared.

Offline

#6 2007-03-14 18:06:21

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [request] Another shot at Last.fm integration

tkn,

What last.fm feed are you using?

Have you thought about using SimplePie, there’s a Textpattern plugin which I use on many of my sites to gather feeds.

Offline

#7 2007-03-14 22:56:45

tkn
Member
From: New York
Registered: 2004-06-29
Posts: 39
Website

Re: [request] Another shot at Last.fm integration

Right now I am using iTunesWatcher which submits tracks from iTunes using an Applescript. I am hoping to modify it to use a last.fm RSS feed from the Recently Listened Tracks section. I basically just use the artify module of iTunesWatcher to display the album art and I want to keep this functionality.

So I need to use SimplePie to parse the feed and then feed the data into the iTunesWatcher scripts to get album art and such. Or I need to figure out how rmc_audioscrobbler does it and modify it to work with the current Amazon SDK.

Neither of which I am capable of without a whole lot more time than I have because I am a very, very poor programmer, so therefore I am hoping someone more experienced takes up one of these challenges.

Offline

#8 2007-03-15 00:50:32

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [request] Another shot at Last.fm integration

I would look at this Last.fm Ajax script, then if you like what you see, ask on the SimplePie forums for assistance in getting the album art.

Offline

Board footer

Powered by FluxBB