| 12345678910111213141516 |
- diff --git a/server/src/repositories/metadata.repository.ts b/server/src/repositories/metadata.repository.ts
- index 6073ddcb2..af431933e 100644
- --- a/server/src/repositories/metadata.repository.ts
- +++ b/server/src/repositories/metadata.repository.ts
- @@ -103,7 +103,10 @@ export class MetadataRepository {
- }
-
- readTags(path: string): Promise<ImmichTags> {
- - return this.exiftool.read(path).catch((error) => {
- + const isVideo = /\.(mp4|mov|avi|mkv)$/i.test(path);
- + const args = isVideo ? ['-ee'] : [];
- +
- + return this.exiftool.read(path, args).catch((error) => {
- this.logger.warn(`Error reading exif data (${path}): ${error}\n${error?.stack}`);
- return {};
- }) as Promise<ImmichTags>;
|