From 0861e5aae91b8ac0cabf8540c640a65d80b7b17c Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 16 Oct 2023 14:48:28 -0400 Subject: [PATCH] fix(server): override sub sec date time via xmp --- server/src/domain/metadata/metadata.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/domain/metadata/metadata.service.ts b/server/src/domain/metadata/metadata.service.ts index 2779df54c..f0c2f0647 100644 --- a/server/src/domain/metadata/metadata.service.ts +++ b/server/src/domain/metadata/metadata.service.ts @@ -331,6 +331,11 @@ export class MetadataService { const sidecarTags = asset.sidecarPath ? await this.repository.getExifTags(asset.sidecarPath) : null; const tags = { ...mediaTags, ...sidecarTags }; + // No known way to override `SubSecDateTimeOriginal` via xmp + if (sidecarTags?.DateTimeOriginal && tags?.SubSecDateTimeOriginal) { + delete tags.SubSecDateTimeOriginal; + } + this.logger.verbose('Exif Tags', tags); return {