fixing how birdnet_analysis.service handles corrupt
audio files
This commit is contained in:
@@ -48,7 +48,7 @@ fi
|
||||
# Takes one argument:
|
||||
# - {DIRECTORY}
|
||||
get_files() {
|
||||
files=($( find ${1} -maxdepth 1 -name '*wav' \
|
||||
files=($( find ${1} -maxdepth 1 -name '*wav' ! -size 0\
|
||||
| sort \
|
||||
| awk -F "/" '{print $NF}' ))
|
||||
[ -n "${files[1]}" ] && echo "Files loaded"
|
||||
|
||||
Reference in New Issue
Block a user