[import_images] Fixed bug with cover consolidation

This commit is contained in:
ayakael 2018-07-18 06:07:50 -08:00
parent 4a7b2c734b
commit c48ff97322
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ cmd_import_images() {
(jpg) local COVER="${fileList}" ;;
esac
done
import_images "${GIT_DIR}" "${SOURCE}" "${IMG}" "${CUE}" $([[ -n "${ACCURIP}" ]] && echo "-a") "${ACCURIP}" $([[ -n "${LOG}" ]] && echo "-l") "${LOG}" $([[ -n "${JPG}" ]] && echo "-c") "${JPG}"
import_images "${GIT_DIR}" "${SOURCE}" "${IMG}" "${CUE}" $([[ -n "${ACCURIP}" ]] && echo "-a") "${ACCURIP}" $([[ -n "${LOG}" ]] && echo "-l") "${LOG}" $([[ -n "${COVER}" ]] && echo "-c") "${COVER}"
echo
local EXIT=$?
[[ ${EXIT} -eq 0 ]] && _msg OK || _msg WARN "Import_images exited with code ${EXIT}"

View file

@ -52,7 +52,7 @@ import_images() {
rm -Rf "${GIT_DIR}/.import/${SOURCE}/${DISCID}" >/dev/null 2>&1
mkdir -p "${GIT_DIR}/.import/${SOURCE}/${DISCID}"
for path in ${pathList[@]}; do
cp --no-preserve=mode "${path}" "${GIT_DIR}/.import/${SOURCE}/${DISCID}/$(sed 's|.*/..||' <<< ${path})"
cp --no-preserve=mode "${path}" "${GIT_DIR}/.import/${SOURCE}/${DISCID}/$(sed 's|.*\.||' <<< ${path})"
done
}