Skip to content

A live bird collage card for your Home Assistant dashboard.

this now searches for Analyzed within RECS_DIR

mcguirepr897d4dc1643d06
diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh
index b497d321..297c48d1 100755
--- a/scripts/extract_new_birdsounds.sh
+++ b/scripts/extract_new_birdsounds.sh
@@ -13,9 +13,8 @@ source /etc/birdnet/birdnet.conf
# Set Variables
TMPFILE=$(mktemp)
-ANALYZED=${RECS_DIR}/*/*Analyzed
#SCAN_DIRS are all directories marked "Analyzed"
-SCAN_DIRS=($(find $ANALYZED -type d -name '*Analyzed' 2>/dev/null | sort ))
+SCAN_DIRS=($(find $RECS_DIR -type d -name '*Analyzed' 2>/dev/null | sort ))
for h in "${SCAN_DIRS[@]}";do
# The TMPFILE is created from each .csv file BirdNET creates