Oh that's a delight
This commit is contained in:
parent
714d11da01
commit
80e908e7f9
1 changed files with 5 additions and 0 deletions
|
@ -592,6 +592,11 @@ def img_info(p: Path) -> ImgInfo:
|
||||||
|
|
||||||
# 944404
|
# 944404
|
||||||
subsec = int(get_tag("EXIF SubSecTime") or get_tag("EXIF SubSecTimeOriginal") or get_tag("EXIF SubSecTimeDigitized") or "0")
|
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)
|
date = date.replace(microsecond=subsec)
|
||||||
|
|
||||||
return ImgInfo(
|
return ImgInfo(
|
||||||
|
|
Loading…
Reference in a new issue