Show bit-depth
This commit is contained in:
parent
5e1f531e3b
commit
d541282f27
@ -61,6 +61,7 @@ do
|
|||||||
'-M') show+=(types) ;;
|
'-M') show+=(types) ;;
|
||||||
'-p') show+=(performers) ;;
|
'-p') show+=(performers) ;;
|
||||||
'-s') show+=(rates) ;;
|
'-s') show+=(rates) ;;
|
||||||
|
'-B') show+=(depths) ;;
|
||||||
'-t') show+=(titles) ;;
|
'-t') show+=(titles) ;;
|
||||||
'-y') show+=(years) ;;
|
'-y') show+=(years) ;;
|
||||||
|
|
||||||
@ -82,6 +83,7 @@ done
|
|||||||
-b Average bitrate
|
-b Average bitrate
|
||||||
-C Channels
|
-C Channels
|
||||||
-s Sample rate
|
-s Sample rate
|
||||||
|
-B Bits per sample
|
||||||
-m Mofification time
|
-m Mofification time
|
||||||
-M Format
|
-M Format
|
||||||
|
|
||||||
@ -195,21 +197,23 @@ do
|
|||||||
info="${show[index]}"
|
info="${show[index]}"
|
||||||
locallength="${length[index]:=50}"
|
locallength="${length[index]:=50}"
|
||||||
case $info in
|
case $info in
|
||||||
albumartists) info="Album artist" ;;
|
albumartists) info='Album artist' ;;
|
||||||
albums) info="Album" ;;
|
albums) info='Album' ;;
|
||||||
artists) info="Artist" ;;
|
artists) info='Artist' ;;
|
||||||
bitrates) info="Bitrate" ;;
|
bitrates) info='Bitrate' ;;
|
||||||
composers) info="Composer" ;;
|
depths) info='Bit depth' ;;
|
||||||
channelss) info="Channels" ;;
|
channelss) info='Channels' ;;
|
||||||
discs) info="Disc" ;;
|
composers) info='Composer' ;;
|
||||||
path) info="Directory name" ;;
|
count) info='#' ;;
|
||||||
genres) info="Genre" ;;
|
discs) info='Disc' ;;
|
||||||
oldtimestamp) info="Last modified" ;;
|
path) info='Directory name' ;;
|
||||||
types) info="Format" ;;
|
genres) info='Genre' ;;
|
||||||
performers) info="Performer" ;;
|
oldtimestamp) info='Last modified' ;;
|
||||||
rates) info="Sample rate" ;;
|
types) info='Format' ;;
|
||||||
titles) info="Title" ;;
|
performers) info='Performer' ;;
|
||||||
years) info="Date" ;;
|
rates) info='Sample rate' ;;
|
||||||
|
titles) info='Title' ;;
|
||||||
|
years) info='Date' ;;
|
||||||
esac
|
esac
|
||||||
printtmp="${info:0:$locallength}"
|
printtmp="${info:0:$locallength}"
|
||||||
until (( ${#printtmp} == locallength ))
|
until (( ${#printtmp} == locallength ))
|
||||||
@ -228,6 +232,7 @@ SELECT
|
|||||||
tags.bitrate,
|
tags.bitrate,
|
||||||
tags.channels,
|
tags.channels,
|
||||||
tags.rate,
|
tags.rate,
|
||||||
|
tags.depth,
|
||||||
source_files.last_change,
|
source_files.last_change,
|
||||||
mime_types.mime_text,
|
mime_types.mime_text,
|
||||||
tags.albumartist,
|
tags.albumartist,
|
||||||
@ -270,6 +275,8 @@ do
|
|||||||
rest="${rest#*::AtOM:SQL:Sep::}"
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
rate="${rest%%::AtOM:SQL:Sep::*}"
|
rate="${rest%%::AtOM:SQL:Sep::*}"
|
||||||
rest="${rest#*::AtOM:SQL:Sep::}"
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
|
depth="${rest%%::AtOM:SQL:Sep::*}"
|
||||||
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
timestamp="${rest%%::AtOM:SQL:Sep::*}"
|
timestamp="${rest%%::AtOM:SQL:Sep::*}"
|
||||||
timestamp="${timestamp%%.*}"
|
timestamp="${timestamp%%.*}"
|
||||||
rest="${rest#*::AtOM:SQL:Sep::}"
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
@ -340,6 +347,16 @@ do
|
|||||||
rates+="${rates+,}$rate"
|
rates+="${rates+,}$rate"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$depth" ] && ! [[ $depths =~ $expr1"$depth"$expr2 ]]
|
||||||
|
then
|
||||||
|
if [ -n "$depths" ] \
|
||||||
|
&& (( depth < ${depths%%,*} ))
|
||||||
|
then
|
||||||
|
depths="$depth,$depths"
|
||||||
|
else
|
||||||
|
depths+="${depths+,}$depth"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if ! [[ $types =~ $expr1"$type"$expr2 ]]
|
if ! [[ $types =~ $expr1"$type"$expr2 ]]
|
||||||
then
|
then
|
||||||
[ -z "$types" ] \
|
[ -z "$types" ] \
|
||||||
@ -418,6 +435,7 @@ do
|
|||||||
unset bitrates
|
unset bitrates
|
||||||
channelss="$channels"
|
channelss="$channels"
|
||||||
rates="$rate"
|
rates="$rate"
|
||||||
|
depths="$depth"
|
||||||
types="$type"
|
types="$type"
|
||||||
albumartists="$albumartist"
|
albumartists="$albumartist"
|
||||||
albums="$album"
|
albums="$album"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user