Skip to content
Snippets Groups Projects
Commit 6acb5e16 authored by ale's avatar ale
Browse files

fix liquidsoap config template

parent 0b785d6b
Branches
No related tags found
No related merge requests found
......@@ -22,9 +22,8 @@ var (
liquidsoapConfigStr = `
# Automatically generated config.
upstream = mksafe(input.http("{{.SourceURL}}", buffer=5.0))
output.icecast(%{{.Format}}(samplerate={{.SampleRate}}, {{if gt .BitRate 0}}bitrate={{.BitRate}}, {{end}}{{if gt .Quality 0.0}}quality={{.Quality}}, {{end}}{{if eq .Channels 2}}stereo{{else}}mono{{end}},
mount="{{.TargetMount}}",
host="{{.TargetIP}}", port={{.TargetPort}}, password="{{.TargetPassword}}",
output.icecast(%{{.Format}}(samplerate={{.SampleRate}}, {{if gt .BitRate 0}}bitrate={{.BitRate}}, {{end}}{{if gt .Quality 0.0}}quality={{.Quality}}, {{end}}{{if eq .Channels 2}}stereo{{else}}mono{{end}}),
mount="{{.TargetMount}}", host="{{.TargetIP}}", port={{.TargetPort}}, password="{{.TargetPassword}}",
upstream)
`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment