From ecd48d457179d305b8afa0768cdfd9601f4a1143 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:58:20 +0200 Subject: [PATCH] Update birdnet_to_mqtt.py --- birdnet-pi/rootfs/helpers/birdnet_to_mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/helpers/birdnet_to_mqtt.py b/birdnet-pi/rootfs/helpers/birdnet_to_mqtt.py index fdbf32b19..30068ff5e 100644 --- a/birdnet-pi/rootfs/helpers/birdnet_to_mqtt.py +++ b/birdnet-pi/rootfs/helpers/birdnet_to_mqtt.py @@ -59,7 +59,7 @@ def automatic_mqtt_publish(file, detections): bird['CommonName'] = detection.common_name bird['Confidence'] = detection.confidence bird['SpeciesCode'] = get_bird_code(detection.scientific_name) - bird['ClipName'] = os.path.basename(detection.file_name_ext) + bird['ClipName'] = path bird['url'] = bird_lookup_url_base + detection.scientific_name image_url = ""