Adding custom communicators - GijsTimmers/yamlradio GitHub Wiki

If you think the display of ICY information can be improved, you can write custom communicators for your channel in the directory communicators/. Make sure the file name is the same as the channel's abbreviation, ending with .py. If the channel's abbreviation starts with a digit, start the filename with an underscore (_). For example:

  • the communicator for Studio Brussel is stubru.py
  • the communicator for Radio 538 is _538.py

There are two methods at your disposal:

  • processChannelName(self, zender), which gets called just before playing the radio station, with zender being the channel name. Edit this method to change the way the channel name is displayed.
  • processIcy(self, regel), which gets called every time the radio station sends new information via a ICY string, with regel being the sent string. Edit this method to change the way the ICY information is displayed.