Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2004-07-31 16:05:20
- polygon_monkey
- Archived Plugin Author
- Registered: 2004-07-07
- Posts: 14
[archived] bsl_audioscrobbler
Notice: This thread is archived, this plugin is no longer available
**********************************************************
This is my first plugin and the code is probably a bit rough, but it works.
Audioscrobbler is a service that shows the songs you have been listening to in your media player on a webpage. There are plugins for most of the major media players including iTunes and Winamp and is free. They also produce a RSS feed for your account.
This plugin takes an audioscrobbler username and a song title amount limit and produces a list of your last played songs.
You can grab it here : http://mypropaganda.co.uk/bsl_audioscrobbler.txt
Please give me comments or things you would like added or approved.
Thanks
Last edited by polygon_monkey (2004-07-31 16:07:07)
Offline
Re: [archived] bsl_audioscrobbler
Wow – thanks. Great plugin! I was getting ready to start tinkering with RSS feeds to do exactly this.
Any chance of having more control over presentation? I’m thinking the ability to change the display of song name / artist and to chose a break tag, if that’s possible.
Offline
Re: [archived] bsl_audioscrobbler
Hmm. Problem is, audioscrobbler’s site occasionally has extremetly long load times and timeouts. After throwing this plugin on my main page, I was timing out (but not on my pages that weren’t including it), so I had to turn it off. Is there a way to make a local cache of the scrobbler data for when it’s doing this?
Offline
#4 2004-07-31 20:15:19
- polygon_monkey
- Archived Plugin Author
- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
I’ll look into those things.
What do you mean by change the display of song/artist?
Last edited by polygon_monkey (2004-07-31 20:15:47)
Offline
Re: [archived] bsl_audioscrobbler
Well, I guess be able to apply styles to the song separately from the artist, that kind of thing. Things like recent tunes and Kung-Tunes let you do that. It helps to distinguish the song from the artist, say by italicizing its name. But looking on my audioscrobbler page, the latest tunes don’t display that way, so maybe it’s not possible. Not a big deal anyway.
Offline
Re: [archived] bsl_audioscrobbler
Finally, a now playing list I don’t have to pay for. Great job.
A few things though:
- The limit attribute doesn’t seem to work. I set limit to “1” and it’s still listing more than just the last played song.
- Like Daragh said, I liked to see more control over the presentation as well. Perhaps a display attribute (ex: display=“songtitle” or display=“artist” or display=“album”, and so on).
I’m looking forward to more releases of this totally rad plugin.
Last edited by gonzo409 (2004-08-01 01:02:45)
Liberal. Geek.
Offline
Re: [archived] bsl_audioscrobbler
Nice alternative to some of the systems that require a paid plugin for iTunes for similar functionality – definately a great start!
Offline
#8 2004-08-01 14:57:27
- polygon_monkey
- Archived Plugin Author
- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
I’ve rewritten the whole plugin and we are now at v0.2
New in this version :
- rewritten from scratch
- now parses title seperate from artist
- you can apply a different class to both the artist and title
- limit should now work
- you can specify your own artist/title separator
- you can specify your own break
- all the properties now have defaults
The next thing I’ll be looking into is caching of the XML file.
Offline
#9 2004-08-01 22:32:53
- polygon_monkey
- Archived Plugin Author
- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
I found a little bug. Will fix tommorow.
Offline
#10 2004-08-02 08:19:58
- polygon_monkey
- Archived Plugin Author
- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
Bug fixed : bsl_audioscobbler v0.3
Last edited by polygon_monkey (2004-08-02 16:18:27)
Offline
Re: [archived] bsl_audioscrobbler
I’m getting a 404 error when trying to access v0.3
Liberal. Geek.
Offline
#12 2004-08-02 16:18:16
- polygon_monkey
- Archived Plugin Author
- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
Opps, I misspelt something.
http://mypropaganda.co.uk/bsl_audioscrobbler/bsl_audioscrobbler.0.3.txt
Offline