[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:
parent
0e3a0d277c
commit
f2e8994b21
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue