[import_images] Fixed bug where DISCID could not be determines for change in print_meta_cue function
This commit is contained in:
parent
7f3a05c6ba
commit
90d3716842
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ import_images() {
|
|||
if [[ -z "${ACCURIP}" ]] && [[ "${SOURCE}" == "CUETOOLS" ]]; then return 2; fi
|
||||
|
||||
# Parses cue file for DISCID
|
||||
local METADATA=$(print_meta_cue "${CUE}")
|
||||
local METADATA=$(print_meta_cue "${CUE}" | tr '\n' ';')
|
||||
local discidList=($(awk 'BEGIN{FS="=";RS=";"}{if($1=="DISCID"){print $2}}' <<<${METADATA} | awk '!seen[$0]++'))
|
||||
|
||||
[[ ${#discidList[@]} -ne 1 ]] && return 3
|
||||
|
|
Loading…
Reference in a new issue