[cmd_import_tracks] TMP subpath now only the archive filename
This commit is contained in:
parent
e9ce16a622
commit
117b0adc9a
1 changed files with 3 additions and 2 deletions
|
@ -19,11 +19,12 @@ cmd_import_tracks() {
|
||||||
for src in ${srcList}; do
|
for src in ${srcList}; do
|
||||||
if iszip ${src}; then
|
if iszip ${src}; then
|
||||||
_msg EXEC "Uncompressing ${archive}"
|
_msg EXEC "Uncompressing ${archive}"
|
||||||
7z x "${src}" -o"${_OPT_TMP}/${src}/" -y >${STDERR} 2>&1
|
7z x "${src}" -o"${_OPT_TMP}/$(basename ${src})/" -y >${STDERR} 2>&1
|
||||||
local EXIT=$?
|
local EXIT=$?
|
||||||
[[ ${EXIT} -eq 0 ]] && { _msg OK; local src="${_OPT_TMP}/${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}"
|
||||||
|
|
Loading…
Reference in a new issue