From 6acb5e1635f06262e77411d9f194c47062dac309 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Tue, 13 Jan 2015 13:53:32 +0000
Subject: [PATCH] fix liquidsoap config template

---
 node/liquidsoap.go | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/node/liquidsoap.go b/node/liquidsoap.go
index 483ae3be..859ba720 100644
--- a/node/liquidsoap.go
+++ b/node/liquidsoap.go
@@ -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)
 `
 
-- 
GitLab