Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Display Internet Radio Station Name During Play (Read 4136 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Display Internet Radio Station Name During Play

Has anyone managed to always display the "Now Playing" Internet radio station name?  When in a playlist, the internet radio station name is displayed in the %title% field.  But when the stream is played, the %title% field changes to the track title in most cases.

I would like to see the station name displayed somewhere during playback, probably the status bar.  I know where and how to change the status bar, but I would need to copy the %title% field into a variable before playback is started.

Any thoughts on how to accomplish the goal?

Re: Display Internet Radio Station Name During Play

Reply #1
%url% should work.

This hides the ? for unknown fields when not available.
Code: [Select]
[%url%]

If you want to try it and display title if not available...
Code: [Select]
$if2(%url%,%title%)

Re: Display Internet Radio Station Name During Play

Reply #2
@marc2k3 - Thanks for the reply.  Your suggestion is an improvement because at least there is SOMETHING displayed.  But it's not ideal.  The title information really should be extracted before playback.

You provided some needed information though - evidently there are variables of which I am unaware.  Is there a complete list somewhere? The %url% variable is new to me.

Re: Display Internet Radio Station Name During Play

Reply #3
Has anyone managed to always display the "Now Playing" Internet radio station name?  When in a playlist, the internet radio station name is displayed in the %title% field.  But when the stream is played, the %title% field changes to the track title in most cases.

I would like to see the station name displayed somewhere during playback, probably the status bar.  I know where and how to change the status bar, but I would need to copy the %title% field into a variable before playback is started.

Any thoughts on how to accomplish the goal?
When adding a URL location to a playlist, the station name appears in the Title field of the playlist, and also in the Metadata field of the Selection Properties UI window under "Track Title."  When starting the stream, if the station is sending song metadata the station name in the playlist's Title field will change to the actual track title, but in the Properties window the station name will remain unchanged in the "track title" field there.  Foobar v2.2 preview x64.  I can illustrate this if need be.

So if you do have that UI layout the station name will always be visible.  Very occasionally the station name will not show when the URL is added to playlist, in which case I use External Tags to add it manually to Track Title and it's back in business.  Can't help you with the status bar though.

Re: Display Internet Radio Station Name During Play

Reply #4
Quote

When adding a URL location to a playlist, the station name appears in the Title field of the playlist, and also in the Metadata field of the Selection Properties UI window under "Track Title."  When starting the stream, if the station is sending song metadata the station name in the playlist's Title field will change to the actual track title, but in the Properties window the station name will remain unchanged in the "track title" field there.  Foobar v2.2 preview x64.  I can illustrate this if need be.

So if you do have that UI layout the station name will always be visible.  Very occasionally the station name will not show when the URL is added to playlist, in which case I use External Tags to add it manually to Track Title and it's back in business.  Can't help you with the status bar though.

Yes, please show how to access the fields from the Properties window.  I've searched and can't find any info on that.  Guessing at the syntax could be a life-long pursuit. 

And is this available in v2.1.5? (I see you are using v2.2 preview.)

I can probably manage getting it into the status bar if I can get it to a variable.

Re: Display Internet Radio Station Name During Play

Reply #5
As I described above, the station name simply remains in the Track Title field of the Metadata group in the standard "Selection Properties" UI element that you can select then paste to a panel using Layout Editing Mode.  It's even present by default when choosing one of suggested layouts given during a first install of Foobar.  See the image below.  I also re-copied the description from my previous post, to which there is nothing to add.  Yes you can add the the Properties window in every Foobar version I know of.



"When adding a URL location to a playlist, the station name appears in the Title field of the playlist, and also in the Metadata field of the Selection Properties UI window under "Track Title."  When starting the stream, if the station is sending song metadata the station name in the playlist's Title field will change to the actual track title, but in the Properties window the station name will remain unchanged in the "track title" field there.  Foobar v2.2 preview x64.

So if you do have that UI layout the station name will always be visible.  Very occasionally the station name will not show when the URL is added to playlist, in which case I use External Tags to add it manually to Track Title."



Re: Display Internet Radio Station Name During Play

Reply #6
Okay, now I understand what you were saying.  I was really just wanting to get the station name to a variable though.  Displaying the whole properties window all of the time is a waste of space that I can't afford.  Thanks anyway.

Re: Display Internet Radio Station Name During Play

Reply #7
There is no titleformat field (what you call variable) included by default that can display it using titleformating.

What you need to do is use External Tags or m-tags to make the url taggable.

For example using External tags , you right click the playlist entry and select Tagging > Edit External Tags.
In the window add a new field named for example "Station name" and value.

You can then use [%station name%] in the status bar, playlist etc to display the value.

Re: Display Internet Radio Station Name During Play

Reply #8
For example using External tags , you right click the playlist entry and select Tagging > Edit External Tags.
In the window add a new field named for example "Station name" and value.

You can then use [%station name%] in the status bar, playlist etc to display the value.
Bingo!  Because I always have the Properties window open I've never had to worry about it.  The above is the way to go.

Re: Display Internet Radio Station Name During Play

Reply #9
There is no titleformat field (what you call variable) included by default that can display it using titleformating.

What you need to do is use External Tags or m-tags to make the url taggable.

For example using External tags , you right click the playlist entry and select Tagging > Edit External Tags.
In the window add a new field named for example "Station name" and value.

You can then use [%station name%] in the status bar, playlist etc to display the value.

I was hoping there was some way to extract the information directly from the stream.  That would save having to make an entry for each radio station.  But the solution you have given sounds like the best available.  Thanks.

Re: Display Internet Radio Station Name During Play

Reply #10
If you changed your playlist grouping to display %title% when listening to a stream, it's not evaluated dynamically like track metadata so the "title" sticks like this...

Not playing...



Playing...




Re: Display Internet Radio Station Name During Play

Reply #11
I tried something like that before.  Unfortunately, not all stations populate the %url% tag.

Re: Display Internet Radio Station Name During Play

Reply #12
Check if the path begins with http like this...

Code: [Select]
$if($strcmp($left(%path%,4),http),%title%,%album artist% - %album% - %date%)

Re: Display Internet Radio Station Name During Play

Reply #13
There is no titleformat field (what you call variable) included by default that can display it using titleformating.

What you need to do is use External Tags or m-tags to make the url taggable.

For example using External tags , you right click the playlist entry and select Tagging > Edit External Tags.
In the window add a new field named for example "Station name" and value.

You can then use [%station name%] in the status bar, playlist etc to display the value.

I was hoping there was some way to extract the information directly from the stream.  That would save having to make an entry for each radio station.  But the solution you have given sounds like the best available.  Thanks.
You could make the entries in bulk.
Create a playlist with all the stations you want to edit.
Select All
Right click , Tagging > Edit External Tags
Press the Tools Button , Select automatically fill values
Source, Other %title%
Pattern %station name%

I tried something like that before.  Unfortunately, not all stations populate the %url% tag.

To clarify:
When connecting to the stream foobar2000 retrieves the icy headers.
icy-name: sends the stream's name and is stored in database metadata as %title%
icy-url: is the URL of the radio station and is stored in database metadata as %url%


If you changed your playlist grouping to display %title% when listening to a stream, it's not evaluated dynamically like track metadata so the "title" sticks like this...

This is also a solution , and will work without the need to create external tags.
Only drawback is it is playlist only (can't display the value in statusbar , window tile) and HLS streams  (since they don't use the ICY protocol) will for example show up like this: