FStream status in Adium: the best way to get it?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
User avatar
biglittledragoon
Crema
Posts: 282
Joined: Mon Feb 21, 2005 2:41 pm
Location: On Earth.... (France)
Contact:

FStream status in Adium: the best way to get it?

Post 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
Knowledge MUST be shared!
La Connaissance ne vaut que si elle est partagée!

My X(tras)
Image The French Team on Twitter
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: FStream status in Adium: the best way to get it?

Post 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.
User avatar
biglittledragoon
Crema
Posts: 282
Joined: Mon Feb 21, 2005 2:41 pm
Location: On Earth.... (France)
Contact:

Re: FStream status in Adium: the best way to get it?

Post by biglittledragoon »

Great minds think alike! :bitchin:

I'm sure that is Zac sees that topic, he will approve your Xtra promptly. ;)

Thank you mtimmsj.
Knowledge MUST be shared!
La Connaissance ne vaut que si elle est partagée!

My X(tras)
Image The French Team on Twitter
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: FStream status in Adium: the best way to get it?

Post by mtimmsj »

User avatar
biglittledragoon
Crema
Posts: 282
Joined: Mon Feb 21, 2005 2:41 pm
Location: On Earth.... (France)
Contact:

Re: FStream status in Adium: the best way to get it?

Post by biglittledragoon »

So great! :smile:

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.
Knowledge MUST be shared!
La Connaissance ne vaut que si elle est partagée!

My X(tras)
Image The French Team on Twitter
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: FStream status in Adium: the best way to get it?

Post 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.
User avatar
biglittledragoon
Crema
Posts: 282
Joined: Mon Feb 21, 2005 2:41 pm
Location: On Earth.... (France)
Contact:

Re: FStream status in Adium: the best way to get it?

Post 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. ;)
Knowledge MUST be shared!
La Connaissance ne vaut que si elle est partagée!

My X(tras)
Image The French Team on Twitter
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: FStream status in Adium: the best way to get it?

Post 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.
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: FStream status in Adium: the best way to get it?

Post 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:

Code: Select all

%_cfstream {parameter}
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
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: FStream status in Adium: the best way to get it?

Post 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.
User avatar
biglittledragoon
Crema
Posts: 282
Joined: Mon Feb 21, 2005 2:41 pm
Location: On Earth.... (France)
Contact:

Re: FStream status in Adium: the best way to get it?

Post by biglittledragoon »

WOW! :shock:

It's a Deluxe Xtra! :D

If you want a French translation, I'm your man.
Knowledge MUST be shared!
La Connaissance ne vaut que si elle est partagée!

My X(tras)
Image The French Team on Twitter
Post Reply