Removed ability to set out name for filelist.html.
This commit is contained in:
parent
77183bb14e
commit
297b8d5985
@ -1,16 +1,12 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
|
|
||||||
radio_dir=/srv/radio
|
radio_dir=/srv/radio
|
||||||
out=$radio_dir/filelist.html
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
f | filelist)
|
f | filelist)
|
||||||
if [[ -n "$2" ]]; then
|
|
||||||
out=$2
|
|
||||||
fi
|
|
||||||
tree -H '' -T "Arav's dwelling / Radio / List" \
|
tree -H '' -T "Arav's dwelling / Radio / List" \
|
||||||
-P '*.ogg' --charset=utf-8 --prune --du -hnl \
|
-P '*.ogg' --charset=utf-8 --prune --du -hnl \
|
||||||
--nolinks -o $out $radio_dir/music
|
--nolinks -o $radio_dir/filelist.html $radio_dir/music
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
p | playlist)
|
p | playlist)
|
||||||
|
Loading…
Reference in New Issue
Block a user