From 80e908e7f9b11905bb264b231fb7e4120024bd31 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Tue, 7 Sep 2021 01:00:37 -0600 Subject: [PATCH] Oh that's a delight --- projects/archiver/org_photos.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/archiver/org_photos.py b/projects/archiver/org_photos.py index c32052f..a69cfee 100644 --- a/projects/archiver/org_photos.py +++ b/projects/archiver/org_photos.py @@ -592,6 +592,11 @@ def img_info(p: Path) -> ImgInfo: # 944404 subsec = int(get_tag("EXIF SubSecTime") or get_tag("EXIF SubSecTimeOriginal") or get_tag("EXIF SubSecTimeDigitized") or "0") + + # GoPro burst format is G%f.JPG or something close to it + if subsec == 0 and (m := re.match("g.*(\d{6}).jpe?g", p.name.lower())): + subsec = int(m.group(1)) + date = date.replace(microsecond=subsec) return ImgInfo(