mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix(server): add videoCodec, container, fps to ExifResponseSchema and mapExif
This commit is contained in:
parent
2314330c78
commit
309e6f2e0a
1 changed files with 6 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ export const ExifResponseSchema = z
|
|||
description: z.string().nullish().default(null).describe('Image description'),
|
||||
projectionType: z.string().nullish().default(null).describe('Projection type'),
|
||||
rating: z.int().min(1).max(5).nullish().default(null).describe('Rating'),
|
||||
fps: z.number().nullish().default(null).describe('Video frames per second'),
|
||||
videoCodec: z.string().nullish().default(null).describe('Video codec'),
|
||||
container: z.string().nullish().default(null).describe('Video container format'),
|
||||
})
|
||||
.describe('EXIF response')
|
||||
.meta({ id: 'ExifResponseDto' });
|
||||
|
|
@ -60,5 +63,8 @@ export function mapExif(entity: MaybeDehydrated<Exif>): ExifResponseDto {
|
|||
description: entity.description,
|
||||
projectionType: entity.projectionType,
|
||||
rating: entity.rating,
|
||||
fps: entity.fps,
|
||||
videoCodec: entity.videoCodec,
|
||||
container: entity.container,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue