fix(playout): %else is not defined

This commit is contained in:
jo 2023-02-26 22:46:20 +01:00 committed by Kyle Robbertze
parent 9384df7be2
commit 654105e865
2 changed files with 6 additions and 4 deletions

View File

@ -120,10 +120,11 @@ output.shoutcast(
{% for output in config.stream.outputs.system -%}
{% if output.enabled -%}
# {{ output.kind.value }}:{{ loop.index }}
%ifndef output.{{ output.kind.value }}
log("output.{{ output.kind.value }} is not defined!")
%endif
%ifdef output.{{ output.kind.value }}
output.{{ output.kind.value }}(id="{{ output.kind.value }}:{{ loop.index }}", s)
%else
log("output.{{ output.kind.value }} is not defined!")
%endif
{% endif -%}

View File

@ -271,10 +271,11 @@
%include "/fake/1.4/ls_script.liq"
# pulseaudio:1
%ifndef output.pulseaudio
log("output.pulseaudio is not defined!")
%endif
%ifdef output.pulseaudio
output.pulseaudio(id="pulseaudio:1", s)
%else
log("output.pulseaudio is not defined!")
%endif