From 0faf2db6a2bbbdef5b6abde02da01e9e0189ba3a Mon Sep 17 00:00:00 2001 From: Jon Gelsey Date: Thu, 28 Nov 2024 12:06:13 -0800 Subject: [PATCH] add rtsp ID to extracted birdsong file name --- scripts/utils/reporting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/reporting.py b/scripts/utils/reporting.py index b2393f459..ac0e00997 100644 --- a/scripts/utils/reporting.py +++ b/scripts/utils/reporting.py @@ -63,7 +63,7 @@ def spectrogram(in_file, title, comment, raw=False): def extract_detection(file: ParseFileName, detection: Detection): conf = get_settings() - new_file_name = f'{detection.common_name_safe}-{detection.confidence_pct}-{detection.date}-birdnet-{detection.time}.{conf["AUDIOFMT"]}' + new_file_name = f'{detection.common_name_safe}-{detection.confidence_pct}-{detection.date}-birdnet-{file.RTSP_id}{detection.time}.{conf["AUDIOFMT"]}' new_dir = os.path.join(conf['EXTRACTED'], 'By_Date', f'{detection.date}', f'{detection.common_name_safe}') new_file = os.path.join(new_dir, new_file_name) if os.path.isfile(new_file):