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 = ""