1
0

Updated radioctl. Changed a name for ezstream playlist gen. Added commands to reaload a playlist for ezstream and dwelling-radio.

This commit is contained in:
Alexander Andreev 2023-10-08 02:39:23 +04:00
parent 099824bfed
commit d549393e42
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -14,7 +14,7 @@ case $1 in
cut -c 31- | sort -d > $radio_dir/playlists/all
break
;;
pe | playlist-ezstream)
ep | ez-playlist)
find -L $radio_dir/music/* -type f -iname '*.ogg' |
sort -d > $radio_dir/playlists/all
break
@ -44,13 +44,23 @@ case $1 in
paste -s -d+ - | bc
break
;;
er | ez-reload)
pkill -HUP ezstream
break
;;
dr | dw-reload)
pkill -HUP dwelling-radio
break
;;
*)
echo "f|ilelist - to generate a filelist.html"
echo "p|laylist - to generate a playlist 'all'"
echo "pe|playlist-ezstream - to generate a playlist 'all' with full paths"
echo "ep|ez-playlist- - to generate a playlist 'all' with full paths"
echo "s|huffle - to shuffle a playlist and store as all-rand"
echo "c|onvert DIR - convert all files in DIR to ogg"
echo "d|uration - get total songs' duration"
echo "er|ez-reload - send SIGHUP to ezstream to reload a playlist"
echo "dr|dw-reload - send SIGHUP to dwelling-radio to reload a playlist"
exit
;;
esac