Added duration cmd to radioctl.
This commit is contained in:
parent
2c9117dbb6
commit
94e777bbd4
@ -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
|
Loading…
Reference in New Issue
Block a user