mirror of
https://github.com/immich-app/immich.git
synced 2026-09-30 13:23:21 +08:00
feat: extract manufacturer and device for samsung videos (#29375)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
co-authored by
Daniel Dietzler
parent
8fb373726b
commit
7c0dc08041
@@ -78,6 +78,10 @@ export interface ImmichTags extends Omit<Tags, TagsWithWrongTypes> {
|
||||
AndroidModel?: string;
|
||||
DeviceManufacturer?: string;
|
||||
DeviceModelName?: string;
|
||||
|
||||
// Samsung specific tags
|
||||
Author?: string;
|
||||
SamsungModel?: string;
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
|
||||
@@ -285,9 +285,18 @@ export class MetadataService extends BaseService {
|
||||
|
||||
// camera
|
||||
make:
|
||||
exifTags.Make ?? exifTags.Device?.Manufacturer ?? exifTags.AndroidMake ?? (exifTags.DeviceManufacturer || null),
|
||||
exifTags.Make ??
|
||||
exifTags.Device?.Manufacturer ??
|
||||
exifTags.AndroidMake ??
|
||||
exifTags.DeviceManufacturer ??
|
||||
(exifTags.SamsungModel ? 'Samsung' : null),
|
||||
model:
|
||||
exifTags.Model ?? exifTags.Device?.ModelName ?? exifTags.AndroidModel ?? (exifTags.DeviceModelName || null),
|
||||
exifTags.Model ??
|
||||
exifTags.Device?.ModelName ??
|
||||
exifTags.AndroidModel ??
|
||||
exifTags.DeviceModelName ??
|
||||
exifTags.Author ??
|
||||
null,
|
||||
fps: video?.frameRate ?? validate(Number(exifTags.VideoFrameRate!)),
|
||||
iso: validate(exifTags.ISO) as number,
|
||||
exposureTime: exifTags.ExposureTime ?? null,
|
||||
|
||||
Reference in New Issue
Block a user