Hi!
I have a problem with custom columns. I use this command:
$if(%isplaying%, >>> %filename%, %filename%) $if($stricmp($left(%path%,7),'http://'), %artist% - %title%) $if($stricmp($left(%path%,8),'https://'), %artist% - %title%))
This works fine for local files but not for streams.
When I listen to a stream I see this in the playlist (http://nap.casthost.net:8878/;stream.mp3): ;stream Killarmy - Red Dawn [1998]
But this is what i want to see: Killarmy - Red Dawn [1998]
And if I'm not listening to a stream, I see this: ;stream ? - GtronicRadio
But this is what i want to see: GtronicRadio
Can anyone help me with this?
The %filename% is the part that returns ";stream" - you can see it there at the end of the URL - ";stream.mp3". So remove the two %filename%.
Also not sure why you need two $if functions for http:// and https:// when they both do the same - just the first one is enough.
The two %filename% are required for local files, and the second $if function for https streams.
Hi!
I have a problem with custom columns. I use this command: $if(%isplaying%, >>> %filename%, %filename%) $if($stricmp($left(%path%,7),'http://'), %artist% - %title%) $if($stricmp($left(%path%,8),'https://'), %artist% - %title%))
This works fine for local files but not for streams.
When I listen to a stream I see this in the playlist (http://nap.casthost.net:8878/;stream.mp3): ;stream Killarmy - Red Dawn [1998]
But this is what i want to see: Killarmy - Red Dawn [1998]
And if I'm not listening to a stream, I see this: ;stream ? - GtronicRadio
But this is what i want to see: GtronicRadio
Can anyone help me with this?
Get rid of the ; before stream. Stream works fine without it. Change "%artist% - %title%" with "[%artist% - ]%title%".
When streaming %artist% is only known when actually playing.
When streaming %title% has actual title of the playing song when actually playing, otherwise it has the station name.
Thx!
I managed to solve it based on your answer.
$if(%isplaying%, >>> $if3($if($stricmp($left(%path%,7),'http://'),[%artist% - ]%title%),$if($stricmp($left(%path%,8),'https://'),[%artist% - ]%title%),%filename%),$if3($if($stricmp($left(%path%,7),'http://'),[%artist% - ]%title%),$if($stricmp($left(%path%,8),'https://'),[%artist% - ]%title%),%filename%))
Works for local files and streams.
Thx!
I managed to solve it based on your answer.
$if(%isplaying%, >>> $if3($if($stricmp($left(%path%,7),'http://'),[%artist% - ]%title%),$if($stricmp($left(%path%,8),'https://'),[%artist% - ]%title%),%filename%),$if3($if($stricmp($left(%path%,7),'http://'),[%artist% - ]%title%),$if($stricmp($left(%path%,8),'https://'),[%artist% - ]%title%),%filename%))
Works for local files and streams.
You are welcome.
BTW. I differentiate streams not by checkling for http:// or https:// but by $if($strstr(%path%),//),STREAM,OTHER) . You cannot use a single / since youtube sources use single / as well.