1
0

Added most_listened_song_file_path option.

This commit is contained in:
Alexander Andreev 2023-03-13 01:40:30 +04:00
parent 2b47748c30
commit 1b91f70edd
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ icecast:
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"
filelist_path: "/srv/radio/filelist.html" filelist_path: "/srv/radio/filelist.html"
most_listened_song_file_path: "/mnt/data/appdata/mostlistenedsong"
liquidsoap: liquidsoap:
executable_path: "/opt/opam/4.14.0/bin/liquidsoap" executable_path: "/opt/opam/4.14.0/bin/liquidsoap"
script_path: "/etc/dwelling/radio.liq" script_path: "/etc/dwelling/radio.liq"

View File

@ -14,8 +14,9 @@ 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"`
FilelistPath string `yaml:"filelist_path"` FilelistPath string `yaml:"filelist_path"`
Liquidsoap struct { MostListenedSongPath string `yaml:"most_listened_song_file_path"`
Liquidsoap struct {
ExecPath string `yaml:"executable_path"` ExecPath string `yaml:"executable_path"`
ScriptPath string `yaml:"script_path"` ScriptPath string `yaml:"script_path"`
} `yaml:"liquidsoap"` } `yaml:"liquidsoap"`