[print_meta_flac] Now able to parse multiple FLAC files
This commit is contained in:
parent
2965b86bef
commit
7f3a05c6ba
1 changed files with 2 additions and 2 deletions
|
@ -11,12 +11,12 @@
|
|||
# }
|
||||
|
||||
print_meta_flac() {
|
||||
local fileList="${@}"
|
||||
local fileList=(${@})
|
||||
|
||||
for file in ${fileList[@]}; do
|
||||
[[ ! -f ${file} ]] && return 1
|
||||
|
||||
local METADATA=$(awk 'BEGIN{FS="]: ";ORS=";"}{if($1 ~ /comment\[/){print $2}}' <<< $(metaflac --list --block-type=VORBIS_COMMENT "${file}"))
|
||||
echo -n ${METADATA} | sed 's|.$||'
|
||||
echo ${METADATA} | sed 's|.$||'
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue