fix(server): extract duration from video as ISO time (#6863)

* fix(server): extract duration from video as ISO time

* feedback and add test

* fix test
This commit is contained in:
Alex
2024-02-02 14:58:13 -06:00
committed by GitHub
parent 2d278d9ab8
commit b768eef44d
3 changed files with 22 additions and 3 deletions
@@ -26,7 +26,7 @@ export interface ImmichTags extends Omit<Tags, 'FocalLength' | 'Duration'> {
MediaGroupUUID?: string;
ImagePixelDepth?: string;
FocalLength?: number;
Duration?: number | ExifDuration;
Duration?: number | string | ExifDuration;
EmbeddedVideoType?: string;
EmbeddedVideoFile?: BinaryField;
MotionPhotoVideo?: BinaryField;