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: Title formatting: how to distinguish the radio stream from the local file (Read 1607 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Title formatting: how to distinguish the radio stream from the local file

HI.

What is the best way to distinguish whether you are listening to a local file or a web radio?

I made some attempts and found that this instruction

Code: [Select]
$if($or($strstr(%path%,'https://'),$strstr(%path%,'http://')), ...

it works, but it seems a little too "fragile" to me.

Is there a standard system or a "best practice" for distinguishing a local file from a web radio?