Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] bsl_audioscrobbler
cheers polygon_monkey. I hope it works. I am assuming that if audioscrobbler dies then my site dies also. When I try to open my site or yours I get “unable to open feed”
Offline
#17 2004-08-03 08:41:09
- polygon_monkey
- Archived Plugin Author

- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
I really need to fix the problem of sites not loading when audioscrobbler.com isn’t avaliable. I’m going to look into that today.
Offline
Re: [archived] bsl_audioscrobbler
Any luck with the caching thing, polygon_monkey? I’m dying to use your plugin again.
Offline
#19 2004-08-10 08:14:19
- polygon_monkey
- Archived Plugin Author

- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
Not at the moment. I’m going to look into it more at the weekend. I can’t figure out a way to check if the audioscrobbler site is down with out taking some time.
Offline
Re: [archived] bsl_audioscrobbler
Righteous. Thanks for your work developing this thing.
Offline
#21 2004-08-10 22:14:30
- polygon_monkey
- Archived Plugin Author

- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
Version 0.4 is now avaliable.
It now has caching. You need to specify a folder to save cache in, cache file name and various other things that are specified in the help.
If the audioscrobbler site is plain not there, it will drop to the cache straight away. You can set a timeout value for when the site is there but it is being slooow so that it drops to cache after a certain amount of time.
You can also set an age on the cache so that it only checks the audioscrobbler site after the cache is so old.
Please report any bugs as I haven’t managed to do extensive testing.
Hope it does what you wanted it to do :
http://mypropaganda.co.uk/bsl_audioscrobbler/bsl_audioscrobbler.0.4.txt
Last edited by polygon_monkey (2004-08-10 22:14:53)
Offline
Re: [archived] bsl_audioscrobbler
OK I gave it a whirl. The caching is definitely a help; the page will load now, albeit with runtimes of 1 second and up (with a 1 second feed_timeout). Ultimately, after one 10 second runtime, I removed it again.
Here’s what I’d suggest (keep in mind I don’t know what I’m talking about when it comes to technical issues, and especially what a plugin can/cannot do): have the plugin only call from the cache. In the meantime have the cache updating every five minutes or whatever. That way there’s no need for any wait time when loading the page.
Offline
#23 2004-08-11 13:44:11
- polygon_monkey
- Archived Plugin Author

- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
That is pretty much impossible unless you run cron jobs on your server. If you could run a script as a cron job that updates the cache and then set the minimum age to be more than the interval of updating then it would run okay.
The only other thing I can suggest is setting the minimum cache age to be half a day, or every two hours so that it only checked the audioscrobbler site a few times a day. From what I tested on my own website, if it’s using the cache only, it’s pretty much instant.
The problem is, there is always going to be the delay of getting the info from the audioscrobbler site at some point, no matter what I do. The audioscrobbler site is just too slow at times (and it’s got to download 10k).
Saying that, I have the plugin installed on my own page and it’s loading okay at the moment.
Offline
Re: [archived] bsl_audioscrobbler
Yeah, sorry if I come across as a fussy bastard – the real problem is their slow-ass site, not your plugin. Hopefully when they install their new server it will be better. I’m going to toy around with the settings and see what I can do. BTW, I’ve been auditioning a bunch of other methods for displaying recently played tracks (kung tunes, recent tunes, audioscrobbler via RSS) and this is the easiest and best method. Good job.
Offline
Re: [archived] bsl_audioscrobbler
I concur, this plugin rocks. I know dick all about the technical stuff and like most peoples blogs, I am the only person who reads mine. The slowness of the page loading does not really bother me as I know it will be sorted when there is a new AS server. I am just delighted that it shows song names on my page taht are playing on my winamp.
Offline
#26 2004-08-12 09:26:17
- polygon_monkey
- Archived Plugin Author

- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
Yet another version of the audioscrobbler plugin as I found a problem with the cache. If you were using the cache and the audioscrobbler site was unavaliable, but your cache was older than the minimum cache age you set, you got the audioscrobbler not working message. I’ve changed it so that it drops to the cache when nothing else is avaliable if it exists.
Offline
Re: [archived] bsl_audioscrobbler
A couple of bugs in v 0.5, I think.
1. Can’t get song_style and song_artist to do anything.
2. Issues with UTF or something. The song-title word Schäfers (umlaut over the a) shows up as Schäfers (lowercase a umlaut replaced with two HTML entities, uppercase A tilde and curren).
My usage: < txp:bsl_audioscrobbler song_style=“ss” artist_style=“as” username=“kevinashworth” limit=“6” separator=”: “ / >
Last edited by kevinashworth (2004-08-27 18:37:06)
Offline
#28 2004-08-30 08:07:51
- polygon_monkey
- Archived Plugin Author

- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
With the style, I’m just wrapping a span tag around the text with the specified class. I could maybe add it to the a tag instead.
As for the text issue, I’ll look into that when I have time.
Thanks for the feedback.
Offline
Re: [archived] bsl_audioscrobbler
There must be something wrong with PHP on my server or something, because I get no span tags with the styles in them. I also can’t get other features to work like use_cache and not_working_message. Separator works, so does break. So not all arguments are being ignored. Bizarre. Oh well.
Offline
#30 2004-08-30 14:15:08
- polygon_monkey
- Archived Plugin Author

- Registered: 2004-07-07
- Posts: 14
Re: [archived] bsl_audioscrobbler
Well the rest of the features definatly work on my site. Hmm. Are you sure you have a folder with enough permissions for your cache to be written to. Start at 777 and work back.
Offline