From 28bfe59204b41953883aed0065054e766f1ac4c2 Mon Sep 17 00:00:00 2001 From: frederik Date: Tue, 11 Mar 2025 14:10:49 +0100 Subject: [PATCH] fix: rtsps is rtsp too --- scripts/birdnet_recording.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/birdnet_recording.sh b/scripts/birdnet_recording.sh index 18fd6a2..bbf3fe4 100755 --- a/scripts/birdnet_recording.sh +++ b/scripts/birdnet_recording.sh @@ -33,7 +33,7 @@ if [ ! -z $RTSP_STREAM ];then # Loop over the streams for i in "${RTSP_STREAMS_EXPLODED_ARRAY[@]}" do - if [[ "$i" == "rtsp://"* ]]; then + if [[ "$i" =~ ^rtsps?:// ]]; then [ $FFMPEG_VERSION -lt 5 ] && PARAM=-stimeout || PARAM=-timeout TIMEOUT_PARAM="$PARAM 10000000" elif [[ "$i" =~ ^[a-z]+:// ]]; then