1
0

Added duration cmd to radioctl.

This commit is contained in:
Alexander Andreev 2023-06-25 22:07:32 +04:00
parent 2c9117dbb6
commit 94e777bbd4
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -30,11 +30,16 @@ case $1 in
done
break
;;
d | duration)
find $radio_dir/music -iname '*.ogg' -exec ffprobe -i "{}" \
-show_entries format=duration -v quiet -of csv="p=0" \; |
paste -s -d+ - | bc
*)
echo "f|ilelist - to generate a filelist.html"
echo "p|laylist - to generate a playlist 'all'"
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"
exit
;;
esac