[import_track] Adjusted find command to actually detect image files

This commit is contained in:
ayakael 2018-05-18 18:17:35 -07:00
parent 117b0adc9a
commit f7bf75f6ec
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -22,7 +22,7 @@ import_track() {
local SOURCE="FLAC" local SOURCE="FLAC"
# Cover image finder # Cover image finder
local coverList=($(find "${DIR_NAME}" -maxdepth 1 -name '*.jpg' -o -name '*.png' -print '%p\t')) local coverList=($(find "${DIR_NAME}" -maxdepth 1 \( -name '*.jpg' -o -name '*.png' \) -printf '%p\t'))
# Metadata parsing # Metadata parsing
local metadataList=($(print_meta_flac ${TRACK} | sed 's|;| |g' )) local metadataList=($(print_meta_flac ${TRACK} | sed 's|;| |g' ))