From: Felix Müller <felix.mueller@we...> - 2010-01-18 22:24:17
I'm using Liquidsoap 0.9.2 for a small, private radio station. New files
are routinely added to some of my playlists. Is there any way to make
Liquidsoap re-read the playlists it uses? Maybe by sending it some
signal? This would be great because that way I wouldn't have to restart
Liquidsoap everytime new songs have been added and thus interrupt the
If there's no such possibility in the current version, please consider
this a feature request.
Otherwise I must say I'm really very happy with Liquidsoap. The learning
curve is pleasingly gentle and it works very reliably.
From: David Baelde <david.baelde@gm...> - 2010-01-20 01:07:48
Hi and welcome,
You need to use the reload parameters of the playlist operators.
$ liquidsoap -h playlist
*** One entry in scripting values:
Loop on a playlist of URIs.
Category: Source / Input
Type: (?id:string, ?length:float, ?default_duration:float,
?conservative:bool, ?timeout:float, ?mode:string, ?reload:int,
?reload_mode:string, ?mime_type:string, ?prefix:string,
* reload :: int (default 0)
Amount of time (in seconds or rounds) before which the playlist is
reloaded; 0 means never.
* reload_mode :: string (default "seconds")
Unit of the reload parameter, either 'rounds' or 'seconds'.
From: David Baelde <david.baelde@gm...> - 2010-01-20 04:06:54
My first answer wasn't enough for Felix, but happily there's more:
each playlist() node creates a ID.reload server command -- along with
ID.uri and ID.next, all of which are slightly documented, see "help
<command>" in the server itself as usual.
So, no SIGHUP (that would be global, too imprecise), but all you need
to do is enable access to the server, e.g. via telnet using
set("server.telnet",true) and send commands through it, manually or