From d55f341b1aafcf130ec1b788ecf1712459f0d2c4 Mon Sep 17 00:00:00 2001 From: Andreas Balogh Date: Thu, 31 Aug 2023 13:53:50 +0200 Subject: [PATCH] corrected tags --- exiftool_scratchpad.cmd | 10 ++++------ set_mtime_from_filename.py | 10 ++++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/exiftool_scratchpad.cmd b/exiftool_scratchpad.cmd index cb27693..01a1864 100644 --- a/exiftool_scratchpad.cmd +++ b/exiftool_scratchpad.cmd @@ -1,6 +1,8 @@ exiftool -G -args "ab-20230726-183944-DJI Mini 2.MP4" | findstr Date -for %F in ("*DJI Mini 2.mp4") DO exiftool -P -tagsFromFile "E:\RawTriage\DJI Mini 2\20230819 Videos\%F" -DateTimeOriginal^[^-]*)-(?P
\S{8}-\S{6})-(?P[^-]*)(-\S+)?.mp4", raw.name) @@ -35,9 +37,9 @@ for raw in src.glob("*.mp4"): mtime = rawdt.timestamp() atime = raw.stat().st_atime print(f"setting {raw.name} to {rawdt}") - exifdt = (rawdt+dt.timedelta(hours=2)).strftime('%Y:%m:%d %H:%M:%S') - print(f'exiftool "-AllDates={exifdt}" "{raw}"') - subprocess.run(["exiftool", f"-AllDates={exifdt}", f"{raw}"]) + # exifdt = (rawdt+dt.timedelta(hours=2)).strftime('%Y:%m:%d %H:%M:%S') + # print(f'exiftool "-AllDates={exifdt}" "{raw}"') + # subprocess.run(["exiftool", f"-AllDates={exifdt}", f"{raw}"]) if not DRY_RUN: os.utime(raw, (atime, mtime)) # fn = f"{md['author'].lower()}-{md['dt']}-{md['model']}{raw.suffix}"