Tuesday, 4 November 2008

Twonkymedia last.fm scrobbler

Well I haven't posted anything for a while, but today I finally completed the first stage of a programming project I hinted back in February.

It is a scrobbler for the last.fm service that sits and monitors the TwonkyMedia uPnP server and sents information of tracks it is servicing!

The TwonkyVision people added an RSS service (think it was on version 4 and primarily to support non-upnp devices such as the SonyPSP) This is available at http://localhost:9000/rss (that link won't work unless you are reading this on a computer running the server!)
By drilling down from this page it is possible to reach a 'last played' rss feed.

It is buggy, the feed isn't updated correctly, but appears the last entry in the rss feed is always the last audio file served up. My scrobbler which is based on the KexpScrobbler by Markus Palme reads this file and extracts the appropriate information from the last entry and scrobbles the data.

I have to do a bit more testing but looks like it works, and I will be releasing it on my website soon!

Labels: , , , ,

Bookmark and Share

1 Comments:

At 02 December 2008 23:16 , Blogger metalcrypt666 said...

Nice.. Just installed it a few minutes ago, but as you pointed out in the instruction, the last played song was inaccurate. So I'm rebuilding the database right now.

 

Post a Comment

Links to this post:

Create a Link

<< Home