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"`