From 0d28d5e8d000b0d728065ef3af74aef75e608c0d Mon Sep 17 00:00:00 2001 From: frederik Date: Thu, 30 Oct 2025 17:48:11 +0100 Subject: [PATCH] use helper --- scripts/install_language_label.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/install_language_label.sh b/scripts/install_language_label.sh index b7d7749..94da6a9 100755 --- a/scripts/install_language_label.sh +++ b/scripts/install_language_label.sh @@ -1,12 +1,8 @@ #!/usr/bin/env bash source /etc/birdnet/birdnet.conf -if [ "$MODEL" == "BirdNET_GLOBAL_6K_V2.4_Model_FP16" ]; then - BASEDIR=labels_nm -else - BASEDIR=labels_l18n -fi +cd /home/$BIRDNET_USER/BirdNET-Pi/scripts -label_file_name="labels_${DATABASE_LANG}.txt" +python3 -c 'from utils.helpers import set_label_file; set_label_file()' -[ -f "$HOME/BirdNET-Pi/model/${BASEDIR}/${label_file_name}" ] && ln -sf ${BASEDIR}/${label_file_name} $HOME/BirdNET-Pi/model/labels.txt +cd -