Correct code

This commit is contained in:
Alexandre
2024-07-02 19:47:07 +02:00
parent 0d7941540f
commit df22ac6568
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,3 @@
## 0.5.5-3 (02-07-2024)
- New option : set the audio clip directory from addon options
## 0.5.5-2 (25-06-2024)

View File

@@ -110,5 +110,5 @@
"slug": "birdnet-go",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-go",
"version": "0.5.5-4"
"version": "0.5.5-5"
}

View File

@@ -43,6 +43,7 @@ for configloc in /config/config.yaml /internal/conf/config.yaml; do
sed -i "/audio clip export directory/c\ path: $birdsongsloc/ # path to audio clip export directory" "$configloc"
fi
done
# If default capture is set at 0%, increase it to 50%
current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true
current_volume="${current_volume:-100}"