The get_recording_datetime() and calculate_detected_at() helpers in audio_analyzer.py are responsible for parsing and computing timestamps from filenames. These are general-purpose utilities and should be moved to a shared utils/ module to improve separation of concerns, reuse, and testability.
Tasks
The
get_recording_datetime()andcalculate_detected_at()helpers inaudio_analyzer.pyare responsible for parsing and computing timestamps from filenames. These are general-purpose utilities and should be moved to a sharedutils/module to improve separation of concerns, reuse, and testability.Tasks
backend/utils/file_parsing.pyget_recording_datetime()tofile_parsing.pycalculate_detected_at()tofile_parsing.pyaudio_analyzer.py(and any other affected files)