[cmd_import_tracks] Fixed syntax errors

This commit is contained in:
ayakael 2018-05-18 19:23:36 -07:00
parent a21a78d66a
commit 0c457f0ac2
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026
2 changed files with 3 additions and 3 deletions

View file

@ -24,9 +24,8 @@ cmd_import_tracks() {
[[ ${EXIT} -eq 0 ]] && { _msg OK; local src="${_OPT_TMP}/$(basename ${src})"; } || _msg WARN [[ ${EXIT} -eq 0 ]] && { _msg OK; local src="${_OPT_TMP}/$(basename ${src})"; } || _msg WARN
fi fi
local fileList=($(find "${src}" -name '*.flac' -o -name '*.mp3')) local fileList=($(find "${src}" -name '*.flac' -o -name '*.mp3'))
echo ${fileList[@]}
for file in ${fileList}; do for file in ${fileList[@]}; do
_msg EXEC "Consolidating ${file}" _msg EXEC "Consolidating ${file}"
import_track "${GIT_DIR}" "${file}" >${STDERR} 2>&1 import_track "${GIT_DIR}" "${file}" >${STDERR} 2>&1
local EXIT=$? local EXIT=$?
@ -34,7 +33,7 @@ cmd_import_tracks() {
done done
done done
local importList=($(find ${GIT_DIR}/.import/ -maxdepth 1 -type d -printf '%p\t')) local importList=($(find ${GIT_DIR}/.import/ -mindepth 1 -maxdepth 1 -type d -printf '%p\t'))
for import in ${importList[@]}; do for import in ${importList[@]}; do
_msg EXEC "Importing ${import}" _msg EXEC "Importing ${import}"
import_dir "${GIT_DIR}" "${import}" >${STDERR} 2>&1 import_dir "${GIT_DIR}" "${import}" >${STDERR} 2>&1

View file

@ -30,6 +30,7 @@ gen_image() {
return 2 return 2
fi fi
fi fi
metaflac --remove-all --dont-use-padding "${TARGET_DIR}/joined.flac"
return 0 return 0
} }