[gen_cue] Fixed an error where gen_cue would add a track too many

This commit is contained in:
ayakael 2018-05-18 19:24:00 -07:00
parent 0c457f0ac2
commit ade92f7db1
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -35,7 +35,7 @@ gen_cue() {
local tagList=($( sed -e 's| ; ||g' -e 's|; ;||' <<< ${tagList[@]} | tr ';' \\n | awk '!seen[$0]++' ))
# Generates breaklist
local fileList=($(find "${TARGET_DIR}" -name '*.flac' -printf '%p\t'))
local fileList=($(find "${TARGET_DIR}" -name '*.flac' -not -name joined.flac -printf '%p\t'))
local breakList=($(print_cue_breaklist ${fileList[@]}))
[[ ! -z "${dateList}" ]] && echo "REM DATE ${dateList}"