Page 1 of 1
FStream status in Adium: the best way to get it?
Posted: Thu Nov 06, 2008 10:40 am
by biglittledragoon
Hello,
FStream is a wonderful free webradio client. I use it preferably to iTunes.
With Adium, you can display your iTunes Status.
FStream can notify iChat to display its status.
I would like to display my FStream status in Adium, like for the iTunes one.
What is the best way to get it?
Ask the FStream Dev' to add an option to notify Adium? He can say "Why only Adium?" (yes, yes, Adium is the Best one).
Ask the Adium Team to change the iTunes status to support FStream, like for the browser link? This solution has my favor.
An another way (AppleScript, etc.)?
What do you think about it?
BLD
Re: FStream status in Adium: the best way to get it?
Posted: Fri Nov 07, 2008 4:32 am
by mtimmsj
I have created an Adium Xtra that will do this. I've uploaded it to
http://www.adiumxtras.com and it is currently waiting for approval. This could take several days. Keep checking back at that URL, search for FStreamStatus. Once it is approved, it will show up in the search results. To use it, you would create a new custom status and in the status message box add %_fstream, give the status a nice Title and make sure you have "Save Custom Status" set before you click ok. Then whenever you want to have your status to be what you are listening to in FStream, just select that status.
Re: FStream status in Adium: the best way to get it?
Posted: Fri Nov 07, 2008 8:26 am
by biglittledragoon
Great minds think alike!
I'm sure that is Zac sees that topic, he will approve your Xtra promptly.
Thank you mtimmsj.
Re: FStream status in Adium: the best way to get it?
Posted: Fri Nov 07, 2008 3:35 pm
by mtimmsj
Re: FStream status in Adium: the best way to get it?
Posted: Sat Nov 08, 2008 8:40 am
by biglittledragoon
So great!
Just a question, couldn't that be a good idea to add something like:
Code: Select all
on Addname(playingName)
if playingName is "" then
return ""
else
return " by " & playingName
end if
end Addname
If you want, you can play with "playingURL" too, but I'm not sure that's very necessary…
Thanks for your help.
Re: FStream status in Adium: the best way to get it?
Posted: Sun Nov 09, 2008 9:37 am
by mtimmsj
This depends on how much data you actually want to display. The playingName is the webradio name. I modeled the status updater after the way that the FStream iTunes status updates work except I modified the english slightly. The FStream iTunes status update will say something like "Listening to song from artist", for the Adium one I decided to change from to by so it reads, "Listening to song by artist."
If the artist and the song data is missing I display the webradio and if for some reason the webradio data is not set I display the URL.
Re: FStream status in Adium: the best way to get it?
Posted: Sun Nov 09, 2008 10:31 am
by biglittledragoon
mtimmsj wrote:This depends on how much data you actually want to display. The playingName is the webradio name.
When you are listening to a radio, it's different to when you're listening to your own iTunes library. So, that why if think it's a good idea to have it.
Moreover, as I listen often to radioio Ambient where names are a little bit weird I added this info. Otherwise "0407" by 0407 is pointless.

Re: FStream status in Adium: the best way to get it?
Posted: Mon Nov 10, 2008 5:18 pm
by mtimmsj
Ok I think I have an idea for how to handle streams that fill in these fields with non-sensical info like radioio Ambient. Let me see if I can get it to work.
Re: FStream status in Adium: the best way to get it?
Posted: Mon Nov 10, 2008 9:08 pm
by mtimmsj
Ok I have updated the xtra, it just needs to be approved.
What I did was add an additional way to run it:
parameter can be any string you want and can include certain tags that will then be converted to the values included in the stream. The currently supported tags are:
- %SONG%
- %ARTIST%
- %ALBUM%
- %WEBRADIO%
- %URL%
So for example if you were listening to Radioio Ambient and you used the following for your status:
Code: Select all
%_cfstream {I'm currently listening to %WEBRADIO%}
Others will see your status as:
I'm currently listening to Radioio Ambient
Re: FStream status in Adium: the best way to get it?
Posted: Mon Nov 10, 2008 9:27 pm
by mtimmsj
Some additional thoughts:
- It looks like I need to add some logic to not pull info from FStream if FStream is not open. That will prevent FStream from opening automatically if you run the xtra (of if you close FStream and still have a status set that runs the xtra). I'll include this in the next version.
- I wonder if it is possible to add localization to the xtra, specifically for the %_fstream script? That way it can dynamically switch between languages depending on the current language being used. I'll have to dig around. In the meantime I guess the %_cfstream option can be used to handle different localizations.
Re: FStream status in Adium: the best way to get it?
Posted: Mon Nov 10, 2008 9:45 pm
by biglittledragoon
WOW!
It's a Deluxe Xtra!
If you want a French translation, I'm your man.