[gen_cue] Fixed bug where breakpoints would be calculated out of order

This commit is contained in:
ayakael 2018-05-18 23:09:37 -07:00
parent fcb973fdc9
commit fd97165a94
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -35,7 +35,8 @@ 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' -not -name joined.flac -printf '%p\t'))
local fileList=($(find "${TARGET_DIR}" -name '*.flac' -not -name joined.flac -printf '%p\n'| sort))
echo ${fileList[@]}
local breakList=($(print_cue_breaklist ${fileList[@]}))
[[ ! -z "${dateList}" ]] && echo "REM DATE ${dateList}"