From 1b91f70eddd5f99a87dbbe98c3492f053eacb9e0 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Mar 2023 01:40:30 +0400 Subject: [PATCH] Added most_listened_song_file_path option. --- configs/config.yaml | 1 + internal/configuration/configuration.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/config.yaml b/configs/config.yaml index 7877e65..6a47c7a 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -7,6 +7,7 @@ icecast: url: "http://radio.arav.home.arpa/status-json.xsl" playlist_path: "/var/log/icecast/playlist.log" filelist_path: "/srv/radio/filelist.html" +most_listened_song_file_path: "/mnt/data/appdata/mostlistenedsong" liquidsoap: executable_path: "/opt/opam/4.14.0/bin/liquidsoap" script_path: "/etc/dwelling/radio.liq" diff --git a/internal/configuration/configuration.go b/internal/configuration/configuration.go index b2178e4..8264a53 100644 --- a/internal/configuration/configuration.go +++ b/internal/configuration/configuration.go @@ -14,8 +14,9 @@ type Configuration struct { URL string `yaml:"url"` Playlist string `yaml:"playlist_path"` } `yaml:"icecast"` - FilelistPath string `yaml:"filelist_path"` - Liquidsoap struct { + FilelistPath string `yaml:"filelist_path"` + MostListenedSongPath string `yaml:"most_listened_song_file_path"` + Liquidsoap struct { ExecPath string `yaml:"executable_path"` ScriptPath string `yaml:"script_path"` } `yaml:"liquidsoap"`