2

So using LiquidSoap for driving my radio station. I have 3 playlists defined and a schedule to switch between them:

pl1 = nrj(playlist("/var/www/html/radiojuno.com/playlists/pl1.m3u"))
pl2 = nrj(playlist("/var/www/html/radiojuno.com/playlists/pl2.m3u"))
pl3 = nrj(playlist("/var/www/html/radiojuno.com/playlists/pl3.m3u"))

radio = switch([ ({22h-7h}, pl1), ({7h-19h}, pl2), ({19h-22h}, pl3) ])

output.icecast(
    %mp3,
    host = "localhost",
    port = 8000,
    password = "xxxx",
    mount = "mymount",
    genre="Electronic",
    description="**Current show description**",
    url="http://example.com",
    radio
)

I'd like to modify the description of the stream according to the current schedule.

But I can't work out how this can be achieved with LiquidSoap. I've been staring at https://www.liquidsoap.info/doc-1.4.2/metadata.html for hours!

Can anyone help?

stollr
  • 6,534
  • 4
  • 43
  • 59
BillyTheFish
  • 35
  • 1
  • 6
  • Looks good to me. Do you find any errors in the log file? (see [here](https://www.liquidsoap.info/doc-1.4.2/settings.html#log-configuration-1) how to log) – stollr Jun 03 '20 at 12:12
  • That configuration 'works' so I wouldn't expect any errors. I'm trying to figure out how to modify the description of the stream ("**Current show description**") according to the schedule, so I can inform my listeners which 'show' they're listening to... – BillyTheFish Jun 03 '20 at 12:50
  • Sorry I misunderstood you. So you want to change the description depending on the playlist that is running? – stollr Jun 03 '20 at 15:14
  • @naitsirch - yes - exactly that! – BillyTheFish Jun 03 '20 at 18:30

1 Answers1

1

It's a pity, but Icecast does not support updating the server information like name or description during a source connection.

The reason for this is that those information are sent via HTTP headers when the source client connects to the server. For more information have a look at the protocol.

Here are the sources backing up my answer:

stollr
  • 6,534
  • 4
  • 43
  • 59