[cmd_export] Fixed IMAGESIZE being badly exported

This commit is contained in:
ayakael 2019-04-08 15:19:09 -04:00
parent 976ee8f44a
commit 1acd573afc
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541

View file

@ -25,7 +25,7 @@ export_meta() {
local TRACKNO="$(print_mtag_trackno ${GIT_DIR} ${IMAGEID} ${trackid})" local TRACKNO="$(print_mtag_trackno ${GIT_DIR} ${IMAGEID} ${trackid})"
_msg ECHO "Checking ${trackid}" _msg ECHO "Checking ${trackid}"
## Path and metadata parsing ## Path and metadata parsing
local FUTURE_META="$(print_meta_mtag ${GIT_DIR}/${IMAGEID}.tags ${TRACKNO} | tr '\\' -d);IMAGESIZE=$(du -sb ${GIT_DIR}/${IMAGEID}.jpg)" local FUTURE_META="$(print_meta_mtag ${GIT_DIR}/${IMAGEID}.tags ${TRACKNO} | tr '\\' -d);IMAGESIZE=$(du -sb ${GIT_DIR}/${IMAGEID}.jpg | awk '{print $1}')"
local FUTURE_PATH="$(print_future_path ${FUTURE_META} | tr '"\:*?|<>' '________' )" local FUTURE_PATH="$(print_future_path ${FUTURE_META} | tr '"\:*?|<>' '________' )"
local PRESENT_PATH="$(print_present_path "${DB_FILE}" ${IMAGEID} ${trackid})" local PRESENT_PATH="$(print_present_path "${DB_FILE}" ${IMAGEID} ${trackid})"
local PRESENT_META="$(print_meta_flac "${TARGET}/${PRESENT_PATH}")" local PRESENT_META="$(print_meta_flac "${TARGET}/${PRESENT_PATH}")"