createindex show file count

This commit is contained in:
Vincent Riquer 2013-09-28 00:31:56 +02:00
parent d541282f27
commit b5c6d052c6

View File

@ -64,6 +64,7 @@ do
'-B') show+=(depths) ;;
'-t') show+=(titles) ;;
'-y') show+=(years) ;;
'-#') show+=(count) ;;
'-T') timeformat="$OPTARG" ;;
'-o') output="$1"
@ -80,6 +81,7 @@ done
cat <<-EOHelp
No output specified!
-f Path
-# File count
-b Average bitrate
-C Channels
-s Sample rate
@ -144,6 +146,9 @@ printline() {
'oldtimestamp')
info=$(printDate ${!info})
;;
'count')
info=$(printf %${locallength}d $count)
;;
'path')
while [[ $path =~ / ]]
do
@ -317,7 +322,8 @@ do
esac
if [[ $dir == $olddir ]]
then
(( $bitrate )) && (( count++ , bitrates+=bitrate ))
(( count++ ))
(( $bitrate )) && (( bitrates+=bitrate ))
((
oldtimestamp = (
timestamp > oldtimestamp
@ -446,7 +452,8 @@ do
performers="$performer"
titles="$title"
years="$year"
(( bitrate )) && (( count=1 , bitrates=bitrate ))
count=1
(( bitrate )) && (( bitrates=bitrate ))
oldmimetype=$mimetype
oldrate=$rate
oldtimestamp=$timestamp