fix(server): override sub sec date time via xmp

This commit is contained in:
Jason Rasmussen 2023-10-16 14:48:28 -04:00
parent 1890c0ab6b
commit 0861e5aae9
No known key found for this signature in database
GPG key ID: 75AD31BF84C94773

View file

@ -331,6 +331,11 @@ export class MetadataService {
const sidecarTags = asset.sidecarPath ? await this.repository.getExifTags(asset.sidecarPath) : null; const sidecarTags = asset.sidecarPath ? await this.repository.getExifTags(asset.sidecarPath) : null;
const tags = { ...mediaTags, ...sidecarTags }; 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); this.logger.verbose('Exif Tags', tags);
return { return {