1
0

Set a new path to radio files (where playlists, filelist, and music are stored).

This commit is contained in:
Alexander Andreev 2023-09-17 19:15:56 +04:00
parent ad5608375c
commit fea96118bc
Signed by: Arav
GPG Key ID: D22A817D95815393
4 changed files with 6 additions and 6 deletions

View File

@ -20,8 +20,8 @@ var (
listenAddress = flag.String("listen", "/var/run/dwelling-radio/sock", "listen address (ip:port|unix_path)")
icecastUrl = flag.String("ic-url", "", "URL to an Icecast's status-json.xsl")
icecastPlaylistPath = flag.String("ic-playlist", "/var/log/icecast/playlist.log", "path to an Icecast's playlist.log file")
filelistPath = flag.String("filelist", "/srv/radio/filelist.html", "path to a filelist.html file")
mostListenedSongPath = flag.String("mls-file", "/srv/radio/mostlistenedsong", "path to a file that stores info about the most listened song")
filelistPath = flag.String("filelist", "/mnt/data/appdata/radio/filelist.html", "path to a filelist.html file")
mostListenedSongPath = flag.String("mls-file", "/mnt/data/appdata/radio/mostlistenedsong", "path to a file that stores info about the most listened song")
songListLen = flag.Int("lst-len", 10, "number of songs to show in last N songs table")
showVersion = flag.Bool("v", false, "show version")

View File

@ -6,7 +6,7 @@ radio_url = "https://radio.arav.su"
radio_name = "Arav's dwelling / Radio"
radio_desc = "Broadcasting from under my desk."
radio_dir = "/srv/radio/"
radio_dir = "/mnt/data/appdata/radio/"
harbor_port = 8002
harbor_password = ""

View File

@ -10,8 +10,8 @@ DynamicUser=yes
ExecStart=/usr/bin/dwelling-radio -listen /var/run/dwelling-radio/sock \
-ic-url http://radio.arav.home.arpa/status-json.xsl \
-ic-playlist /var/log/icecast/playlist.log \
-filelist /srv/radio/filelist.html \
-mls-file /srv/radio/mostlistenedsong \
-filelist /mnt/data/appdata/radio/filelist.html \
-mls-file /mnt/data/appdata/radio/mostlistenedsong \
-lst-len 10
ReadOnlyPaths=/

View File

@ -1,6 +1,6 @@
#!/usr/bin/sh
radio_dir=/srv/radio
radio_dir=/mnt/data/appdata/radio
case $1 in
f | filelist)