[import_src] Fixed bug where empty ARTIST would be defined in metadata

[import_src] Fixed bug where BATCHID would be defined in metadata even when no batch id was given
This commit is contained in:
ayakael 2018-07-27 05:32:47 -08:00
parent 0e3a0d277c
commit f2e8994b21
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -62,7 +62,8 @@ import_src() {
# Conjoins trackmetaList and addmetaList into metadataList
while [[ ${COUNT} -lt ${#trackList[@]} ]]; do
local metadataList[${COUNT}]="${trackmetaList[${COUNT}]};${addmetaList[${COUNT}]};IMAGEID=${IMAGEID};BATCHID=${BATCHID}"
local metadataList[${COUNT}]="${trackmetaList[${COUNT}]};${addmetaList[${COUNT}]};IMAGEID=${IMAGEID};"
[[ -n "${BATCHID}" ]] && local metadataList[${COUNT}]="${metadataList[${COUNT}]};BATCHID=${BATCHID};"
local COUNT=$(( ${COUNT} + 1 ))
done