[import_dir] DURATION tag automatically generated

This commit is contained in:
ayakael 2018-05-18 17:06:00 -07:00
parent 16c689d4d7
commit 6e6e177084
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -36,7 +36,8 @@ import_dir() {
local COUNT=0 local COUNT=0
for track in ${trackList[@]}; do for track in ${trackList[@]}; do
local TRACKID=$(metaflac --list --block-number=0 "${track}" | awk 'BEGIN{FS=": "}{if($1==" MD5 signature") {print $2}}') local TRACKID=$(metaflac --list --block-number=0 "${track}" | awk 'BEGIN{FS=": "}{if($1==" MD5 signature") {print $2}}')
local metadata_trackList[${COUNT}]="$(print_meta_flac "${track}");IMAGEID=${IMAGEID};TRACKID=${TRACKID};" local DURATION=$(soxi -D "${track}")
local metadata_trackList[${COUNT}]="$(print_meta_flac "${track}");DURATION=${DURATION};IMAGEID=${IMAGEID};TRACKID=${TRACKID};"
local COUNT=$(( ${COUNT} + 1 )) local COUNT=$(( ${COUNT} + 1 ))
done done