[import_images] WIll not consolidate to .import folder by DISCID
This commit is contained in:
parent
8e494ba16f
commit
d3a11f2f18
1 changed files with 5 additions and 1 deletions
|
@ -42,10 +42,14 @@ import_images() {
|
|||
[[ -f "${path}" ]] || return 1
|
||||
done
|
||||
|
||||
# Parses cue file for metadata
|
||||
local METADATA=$(print_meta_cue "${CUE}")
|
||||
local DISCID="$(awk 'BEGIN{RS=";";FS="="}{if($1=="DISCID"){print $2}}')"
|
||||
|
||||
# Copies path to import folder
|
||||
mkdir -p "${GIT_DIR}/.import/${SOURCE}/$(dirname ${IMG} | sed 's|.*/||')"
|
||||
for path in ${pathList[@]}; do
|
||||
cp "${path}" "${GIT_DIR}/.import/${SOURCE}/$(dirname ${IMG} | sed 's|.*/||')/$(sed 's|.*/.||' <<< ${TRACK_DIR})"
|
||||
cp "${path}" "${GIT_DIR}/.import/${SOURCE}/${DISCID}/$(sed 's|.*/..||' <<< ${path})"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue