From e94973920efcaefb17ad0d13c99c6c8f6056bbbd Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 29 Aug 2022 07:17:40 +0400 Subject: [PATCH] Added configuration fields for a liquidsoap. --- configs/config.yaml | 3 +++ internal/configuration/configuration.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/configs/config.yaml b/configs/config.yaml index 362ad28..0e68964 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -6,6 +6,9 @@ icecast: # URL to Icecast's status-json.xsl url: "http://radio.arav.home.arpa/status-json.xsl" playlist_path: "/var/log/icecast/playlist.log" +liquidsoap: + executable_path: "/usr/bin/liquidsoap" + script_path: "/etc/dwelling/radio.liq" # How much songs to list on a page list_last_n_songs: 10 log: diff --git a/internal/configuration/configuration.go b/internal/configuration/configuration.go index 32e62d5..34a9713 100644 --- a/internal/configuration/configuration.go +++ b/internal/configuration/configuration.go @@ -15,6 +15,10 @@ type Configuration struct { URL string `yaml:"url"` Playlist string `yaml:"playlist_path"` } `yaml:"icecast"` + Liquidsoap struct { + ExecPath string `yaml:"executable_path"` + ScriptPath string `yaml:"script_path"` + } `yaml:"liquidsoap"` ListLastNSongs int `yaml:"list_last_n_songs"` Log struct { ToStdout bool `yaml:"stdout"`