Skip to content

Commit

Permalink
add rtsp ID to extracted birdsong file name
Browse files Browse the repository at this point in the history
  • Loading branch information
jgelsey authored and Nachtzuster committed Nov 30, 2024
1 parent abcbcb6 commit 0faf2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0faf2db

Please sign in to comment.