Support shallow Dahua folder layout #136
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-135-shallow-dahua-layout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some Dahua cameras use a shallower folder structure where
.jpgfiles sit directly injpg/HH/instead ofjpg/HH/MM/, and the filename encodes both minutes and seconds asMM.SS[flags]instead of justSS[flags].This PR adds support for both layouts:
jpg/HH/MM/SS[flags].jpgjpg/HH/MM.SS[flags].jpg_parse_snapshot_time()detects the format from the filename (presence of a.), and_all_snapshots_in_channel()scans both the MM subdirectory tree and the HH directory for.jpgfiles.Closes #135
f5bd27668507756bd854