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)") 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") 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") 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") filelistPath = flag.String("filelist", "/mnt/data/appdata/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") 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") songListLen = flag.Int("lst-len", 10, "number of songs to show in last N songs table")
showVersion = flag.Bool("v", false, "show version") 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_name = "Arav's dwelling / Radio"
radio_desc = "Broadcasting from under my desk." radio_desc = "Broadcasting from under my desk."
radio_dir = "/srv/radio/" radio_dir = "/mnt/data/appdata/radio/"
harbor_port = 8002 harbor_port = 8002
harbor_password = "" harbor_password = ""

View File

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

View File

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