[import_src] Fixed bug where SOURCE would get overriden by DISCID. DISCID from EAC is now extracted from CUE file
This commit is contained in:
parent
eaf7fb4389
commit
37266463ce
1 changed files with 4 additions and 2 deletions
|
@ -35,8 +35,10 @@ import_src() {
|
|||
|
||||
# Generates IMAGEID
|
||||
echo "Generating IMAGEID"
|
||||
[[ "${SOURCE}" == "CUETOOLS" ]] && local SOURCE=$(grep "CTDB TOCID:" ${TRACK_DIR}/accurip)
|
||||
local IMAGEID="SHA256-${SOURCE}--$(sha256sum "${TRACK_DIR}/flac" | cut -d' ' -f1)"
|
||||
local DISCID="${SOURCE}"
|
||||
[[ "${SOURCE}" == "CUETOOLS" ]] && local DISCID=$(grep "CTDB TOCID:" ${TRACK_DIR}/accurip | cut -d' ' -f3 | sed 's|-]||')
|
||||
[[ "${SOURCE}" == "EAC" ]] && local DISCID="$(grep "REM DISCID" ${TRACK_DIR}/cue | cut -d' ' -f3)"
|
||||
local IMAGEID="SHA256-${DISCID}--$(sha256sum "${TRACK_DIR}/flac" | cut -d' ' -f1)"
|
||||
|
||||
# Generate metadata_trackList
|
||||
echo "Generating metadata"
|
||||
|
|
Loading…
Reference in a new issue