video-geolocation.patch 718 B

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