Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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
Re: [request] Another shot at Last.fm integration
I would love to see this happen.
Offline
Re: [request] Another shot at Last.fm integration
Would be very, very, very nice!
Offline
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
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
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline