Skip to content
Snippets Groups Projects
Verified Commit 01132add authored by Ole Binder's avatar Ole Binder
Browse files

Fix: Update print statements for liquidsoap formatter bug

parent 6f2f1cda
No related branches found
No related tags found
1 merge request!17Yaml configuration file
......@@ -46,9 +46,7 @@ def on_metadata_notification(meta) =
log(
level=3,
label="metadata",
"Detected FALLBACK channel `#{channel_name}` playing (Show ID: #{
fallback_show_id()
})"
"Detected FALLBACK channel `#{channel_name}` playing (Show ID: #{fallback_show_id()})"
)
show_name := fallback_show_name()
show_id := fallback_show_id()
......
......@@ -199,9 +199,7 @@ def post_playlog(api_url, data) =
)
else
log(
"ERROR during playlog POST: #{result.status_code} | #{
result.status_message
}"
"ERROR during playlog POST: #{result.status_code} | #{result.status_message}"
)
end
end
......
......@@ -68,9 +68,7 @@ def create_input_line(device) =
fun (json_string) ->
begin
log(
"Received JSON to set track metadata on channel '#{source_id}' to:\n #{
json_string
}"
"Received JSON to set track metadata on channel '#{source_id}' to:\n #{json_string}"
)
metadata = build_metadata(json_string)
insert_callback = list.assoc(source_id, in_line_insert_callbacks())
......
......@@ -153,9 +153,13 @@ then
settings.server.telnet.set(false)
else
print(
"\tLiquidsoap Telnet Server at #{config.telnet.server_host}:#{
config.telnet.server_port
} (#{config.telnet.server_timeout}s timeout)"
"\tLiquidsoap Telnet Server at " ^
config.telnet.server_host ^
":" ^
string.float(config.telnet.server_port) ^
" (" ^
string.float(config.telnet.server_timeout) ^
"s timeout)"
)
settings.server.telnet.bind_addr.set(config.telnet.server_host)
settings.server.telnet.port.set(int_of_float(config.telnet.server_port))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment