1
0

Added configuration fields for a liquidsoap.

This commit is contained in:
Alexander Andreev 2022-08-29 07:17:40 +04:00
parent e0794d395d
commit e94973920e
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,9 @@ icecast:
# URL to Icecast's status-json.xsl # URL to Icecast's status-json.xsl
url: "http://radio.arav.home.arpa/status-json.xsl" url: "http://radio.arav.home.arpa/status-json.xsl"
playlist_path: "/var/log/icecast/playlist.log" 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 # How much songs to list on a page
list_last_n_songs: 10 list_last_n_songs: 10
log: log:

View File

@ -15,6 +15,10 @@ type Configuration struct {
URL string `yaml:"url"` URL string `yaml:"url"`
Playlist string `yaml:"playlist_path"` Playlist string `yaml:"playlist_path"`
} `yaml:"icecast"` } `yaml:"icecast"`
Liquidsoap struct {
ExecPath string `yaml:"executable_path"`
ScriptPath string `yaml:"script_path"`
} `yaml:"liquidsoap"`
ListLastNSongs int `yaml:"list_last_n_songs"` ListLastNSongs int `yaml:"list_last_n_songs"`
Log struct { Log struct {
ToStdout bool `yaml:"stdout"` ToStdout bool `yaml:"stdout"`