Skip to content

Generic parser doesn't recognize audiomoth hex string in the middle of other content #2

Description

@sammlapp

Error from parse method on aru_metadata_parser

parser = aru_metadata_parser.parse.ARUFileTimestampParser('UTC')
p="/output/extracted_clips_v1/audio/MSD-0685_5ED22EA0_3462s-3472s_3462.3_3472.3.wav"
parser.parse(p)
ValueError: could not parse start time from file name: /output/extracted_clips_v1/audio/MSD-0685_5ED22EA0_3462s-3472s_3462.3_3472.3.wav using any available strategy

But it does correctly process 5ED22EA0.wav or 5ED22EA0

(needs regex search like the one that works for date-time, but looking for the hex string and passing it to the relevant hex string parser)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions