merge liquidsoap commands, different instances of liquidsoap for each station

This commit is contained in:
bkfox
2015-12-12 17:11:04 +01:00
parent 202992521e
commit 012e2dd9d0
6 changed files with 141 additions and 151 deletions

View File

@ -1,4 +1,7 @@
{# Utilities #}
{# Context: #}
{# - controller: controller used to generate the current file #}
{# - settings: global settings #}
def interactive_source (id, s) = \
s = store_metadata(id=id, size=1, s) \
add_skip_command(s) \
@ -13,13 +16,11 @@ end \
\
{# Config #}
set("server.socket", true) \
set("server.socket.path", "{{ settings.AIRCOX_LIQUIDSOAP_SOCKET }}") \
set("server.socket.path", {{ controller.socket_path }}) \
{% for key, value in settings.AIRCOX_LIQUIDSOAP_SET.items %}
set("{{ key|safe }}", {{ value|safe }}) \
{% endfor %}
\
\
{% for controller in monitor.controllers.values %}
{# station #}
{{ controller.id }} = interactive_source ( \
"{{ controller.id }}", \
@ -72,5 +73,4 @@ output.{{ output.get_type_display }}( \
{% endif %}
) \
{% endfor %}
{% endfor %}